diff options
author | alexcfyung <alexcfyung@hotmail.com> | 2022-01-06 18:54:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-06 18:54:32 +0300 |
commit | f6e5050579d8d0ec7c68ed499dcc8701bd49c18a (patch) | |
tree | b5f5590d70e1dc2a76c0561484dc09c2de0d6a11 /Makefile | |
parent | 79b21eead251d9c6671c2781a741ed644819456c (diff) |
build: start build on z/OS
Update configure.py, Makefile, and common.gypi to get the
build started on z/OS.
Co-authored-by: Gaby Baghdadi <baghdadi@ca.ibm.com>
Co-authored-by: Wayne Zhang <zsw007@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/41273
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -10,6 +10,9 @@ TEST_CI_ARGS ?= STAGINGSERVER ?= node-www LOGLEVEL ?= silent OSTYPE := $(shell uname -s | tr '[:upper:]' '[:lower:]') +ifeq ($(findstring os/390,$OSTYPE),os/390) +OSTYPE ?= os390 +endif ARCHTYPE := $(shell uname -m | tr '[:upper:]' '[:lower:]') COVTESTS ?= test-cov COV_SKIP_TESTS ?= core_line_numbers.js,testFinalizer.js,test_function/test.js @@ -824,6 +827,9 @@ endif # ifeq ($(DISTTYPE),release) DISTTYPEDIR ?= $(DISTTYPE) RELEASE=$(shell sed -ne 's/\#define NODE_VERSION_IS_RELEASE \([01]\)/\1/p' src/node_version.h) PLATFORM=$(shell uname | tr '[:upper:]' '[:lower:]') +ifeq ($(findstring os/390,$PLATFORM),os/390) +PLATFORM ?= os390 +endif NPMVERSION=v$(shell cat deps/npm/package.json | grep '"version"' | sed 's/^[^:]*: "\([^"]*\)",.*/\1/') UNAME_M=$(shell uname -m) @@ -845,6 +851,9 @@ else ifeq ($(findstring s390,$(UNAME_M)),s390) DESTCPU ?= s390 else +ifeq ($(findstring OS/390,$(shell uname -s)),OS/390) +DESTCPU ?= s390x +else ifeq ($(findstring arm64,$(UNAME_M)),arm64) DESTCPU ?= arm64 else @@ -872,6 +881,7 @@ endif endif endif endif +endif ifeq ($(DESTCPU),x64) ARCH=x64 else |