| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 44375c6 commit 4b25b98
17 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -368,6 +368,9 @@ DOCBUILDSTAMP_PREREQS = tools/doc/addon-verify.mjs doc/api/addons.md | |||
| 368 | 368 | ifeq ($(OSTYPE),aix) | |
| 369 | 369 | DOCBUILDSTAMP_PREREQS := $(DOCBUILDSTAMP_PREREQS) out/$(BUILDTYPE)/node.exp | |
| 370 | 370 | endif | |
| 371 | + ifeq ($(OSTYPE),os400) | ||
| 372 | + DOCBUILDSTAMP_PREREQS := $(DOCBUILDSTAMP_PREREQS) out/$(BUILDTYPE)/node.exp | ||
| 373 | + endif | ||
| 371 | 374 | ||
| 372 | 375 | node_use_openssl = $(call available-node,"-p" \ | |
| 373 | 376 | "process.versions.openssl != undefined") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -137,7 +137,7 @@ | |||
| 137 | 137 | 'defines': [ 'DEBUG', '_DEBUG', 'V8_ENABLE_CHECKS' ], | |
| 138 | 138 | 'cflags': [ '-g', '-O0' ], | |
| 139 | 139 | 'conditions': [ | |
| 140 | - ['OS=="aix"', { | ||
| 140 | + ['OS in "aix os400"', { | ||
| 141 | 141 | 'cflags': [ '-gxcoff' ], | |
| 142 | 142 | 'ldflags': [ '-Wl,-bbigtoc' ], | |
| 143 | 143 | }], | |
@@ -393,11 +393,11 @@ | |||
| 393 | 393 | 'BUILDING_UV_SHARED=1', | |
| 394 | 394 | ], | |
| 395 | 395 | }], | |
| 396 | - [ 'OS in "linux freebsd openbsd solaris aix"', { | ||
| 396 | + [ 'OS in "linux freebsd openbsd solaris aix os400"', { | ||
| 397 | 397 | 'cflags': [ '-pthread' ], | |
| 398 | 398 | 'ldflags': [ '-pthread' ], | |
| 399 | 399 | }], | |
| 400 | - [ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', { | ||
| 400 | + [ 'OS in "linux freebsd openbsd solaris android aix os400 cloudabi"', { | ||
| 401 | 401 | 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ], | |
| 402 | 402 | 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++17' ], | |
| 403 | 403 | 'defines': [ '__STDC_FORMAT_MACROS' ], | |
@@ -421,11 +421,11 @@ | |||
| 421 | 421 | 'cflags': [ '-m64' ], | |
| 422 | 422 | 'ldflags': [ '-m64' ], | |
| 423 | 423 | }], | |
| 424 | - [ 'target_arch=="ppc" and OS!="aix"', { | ||
| 424 | + [ 'target_arch=="ppc" and OS not in "aix os400"', { | ||
| 425 | 425 | 'cflags': [ '-m32' ], | |
| 426 | 426 | 'ldflags': [ '-m32' ], | |
| 427 | 427 | }], | |
| 428 | - [ 'target_arch=="ppc64" and OS!="aix"', { | ||
| 428 | + [ 'target_arch=="ppc64" and OS not in "aix os400"', { | ||
| 429 | 429 | 'cflags': [ '-m64', '-mminimal-toc' ], | |
| 430 | 430 | 'ldflags': [ '-m64' ], | |
| 431 | 431 | }], | |
@@ -444,7 +444,7 @@ | |||
| 444 | 444 | }], | |
| 445 | 445 | ], | |
| 446 | 446 | }], | |
| 447 | - [ 'OS=="aix"', { | ||
| 447 | + [ 'OS in "aix os400"', { | ||
| 448 | 448 | 'variables': { | |
| 449 | 449 | # Used to differentiate `AIX` and `OS400`(IBM i). | |
| 450 | 450 | 'aix_variant_name': '<!(uname -s)', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,7 +45,7 @@ | |||
| 45 | 45 | parser = argparse.ArgumentParser() | |
| 46 | 46 | ||
| 47 | 47 | valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux', | |
| 48 | - 'android', 'aix', 'cloudabi', 'ios') | ||
| 48 | + 'android', 'aix', 'cloudabi', 'os400', 'ios') | ||
| 49 | 49 | valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc', | |
| 50 | 50 | 'ppc64', 'x64', 'x86', 'x86_64', 's390x', 'riscv64', 'loong64') | |
| 51 | 51 | valid_arm_float_abi = ('soft', 'softfp', 'hard') | |
@@ -1325,7 +1325,7 @@ def configure_node(o): | |||
| 1325 | 1325 | elif sys.platform == 'zos': | |
| 1326 | 1326 | configure_zos(o) | |
| 1327 | 1327 | ||
| 1328 | - if flavor == 'aix': | ||
| 1328 | + if flavor in ('aix', 'os400'): | ||
| 1329 | 1329 | o['variables']['node_target_type'] = 'static_library' | |
| 1330 | 1330 | ||
| 1331 | 1331 | if target_arch in ('x86', 'x64', 'ia32', 'x32'): | |
@@ -1446,6 +1446,8 @@ def configure_node(o): | |||
| 1446 | 1446 | shlib_suffix = '%s.dylib' | |
| 1447 | 1447 | elif sys.platform.startswith('aix'): | |
| 1448 | 1448 | shlib_suffix = '%s.a' | |
| 1449 | + elif sys.platform == 'os400': | ||
| 1450 | + shlib_suffix = '%s.a' | ||
| 1449 | 1451 | elif sys.platform.startswith('zos'): | |
| 1450 | 1452 | shlib_suffix = '%s.x' | |
| 1451 | 1453 | else: | |
@@ -1959,6 +1961,9 @@ def icu_download(path): | |||
| 1959 | 1961 | elif flavor == 'mac': | |
| 1960 | 1962 | icu_config['variables']['icu_asm_ext'] = 'S' | |
| 1961 | 1963 | icu_config['variables']['icu_asm_opts'] = [ '-a', 'gcc-darwin' ] | |
| 1964 | + elif sys.platform == 'os400': | ||
| 1965 | + icu_config['variables']['icu_asm_ext'] = 'S' | ||
| 1966 | + icu_config['variables']['icu_asm_opts'] = [ '-a', 'xlc' ] | ||
| 1962 | 1967 | elif sys.platform.startswith('aix'): | |
| 1963 | 1968 | icu_config['variables']['icu_asm_ext'] = 'S' | |
| 1964 | 1969 | icu_config['variables']['icu_asm_opts'] = [ '-a', 'xlc' ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ | |||
| 9 | 9 | '_GNU_SOURCE' | |
| 10 | 10 | ] | |
| 11 | 11 | }], | |
| 12 | - [ 'OS=="aix"', { | ||
| 12 | + [ 'OS in "aix os400"', { | ||
| 13 | 13 | 'include_dirs': [ 'config/aix' ], | |
| 14 | 14 | 'sources': [ 'config/aix/ares_config.h' ], | |
| 15 | 15 | 'defines': [ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -135,7 +135,7 @@ | |||
| 135 | 135 | }] | |
| 136 | 136 | ] | |
| 137 | 137 | }], | |
| 138 | - ['OS in "freebsd dragonflybsd linux openbsd solaris android aix"', { | ||
| 138 | + ['OS in "freebsd dragonflybsd linux openbsd solaris android aix os400"', { | ||
| 139 | 139 | 'cflags': [ '-Wall' ], | |
| 140 | 140 | 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ], | |
| 141 | 141 | 'target_conditions': [ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -326,6 +326,21 @@ | |||
| 326 | 326 | }], | |
| 327 | 327 | ] | |
| 328 | 328 | }], | |
| 329 | + [ 'OS=="os400"', { | ||
| 330 | + 'sources': [ | ||
| 331 | + 'src/unix/aix-common.c', | ||
| 332 | + 'src/unix/ibmi.c', | ||
| 333 | + 'src/unix/posix-poll.c', | ||
| 334 | + 'src/unix/no-fsevents.c', | ||
| 335 | + 'src/unix/no-proctitle.c', | ||
| 336 | + ], | ||
| 337 | + 'defines': [ | ||
| 338 | + '_ALL_SOURCE', | ||
| 339 | + '_XOPEN_SOURCE=500', | ||
| 340 | + '_LINUX_SOURCE_COMPAT', | ||
| 341 | + '_THREAD_SAFE', | ||
| 342 | + ], | ||
| 343 | + }], | ||
| 329 | 344 | [ 'OS=="freebsd" or OS=="dragonflybsd"', { | |
| 330 | 345 | 'sources': [ 'src/unix/freebsd.c' ], | |
| 331 | 346 | }], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,7 +63,7 @@ | |||
| 63 | 63 | [ 'node_shared=="true"', { | |
| 64 | 64 | 'node_target_type%': 'shared_library', | |
| 65 | 65 | 'conditions': [ | |
| 66 | - ['OS=="aix"', { | ||
| 66 | + ['OS in "aix os400"', { | ||
| 67 | 67 | # For AIX, always generate static library first, | |
| 68 | 68 | # It needs an extra step to generate exp and | |
| 69 | 69 | # then use both static lib and exp to create | |
@@ -112,7 +112,7 @@ | |||
| 112 | 112 | }, | |
| 113 | 113 | ||
| 114 | 114 | 'conditions': [ | |
| 115 | - ['OS=="aix"', { | ||
| 115 | + ['OS in "aix os400"', { | ||
| 116 | 116 | 'ldflags': [ | |
| 117 | 117 | '-Wl,-bnoerrmsg', | |
| 118 | 118 | ], | |
@@ -193,7 +193,7 @@ | |||
| 193 | 193 | }, | |
| 194 | 194 | }], | |
| 195 | 195 | [ 'node_intermediate_lib_type=="static_library" and ' | |
| 196 | - 'node_shared=="true" and OS=="aix"', { | ||
| 196 | + 'node_shared=="true" and OS in "aix os400"', { | ||
| 197 | 197 | # For AIX, shared lib is linked by static lib and .exp. In the | |
| 198 | 198 | # case here, the executable needs to link to shared lib. | |
| 199 | 199 | # Therefore, use 'node_aix_shared' target to generate the | |
@@ -228,7 +228,7 @@ | |||
| 228 | 228 | }, | |
| 229 | 229 | }, | |
| 230 | 230 | 'conditions': [ | |
| 231 | - ['OS != "aix" and OS != "mac" and OS != "ios"', { | ||
| 231 | + ['OS != "aix" and OS != "os400" and OS != "mac" and OS != "ios"', { | ||
| 232 | 232 | 'ldflags': [ | |
| 233 | 233 | '-Wl,--whole-archive', | |
| 234 | 234 | '<(obj_dir)/<(STATIC_LIB_PREFIX)<(node_core_target_name)<(STATIC_LIB_SUFFIX)', | |
@@ -742,7 +742,7 @@ | |||
| 742 | 742 | 'NODE_USE_NODE_CODE_CACHE=1', | |
| 743 | 743 | ], | |
| 744 | 744 | }], | |
| 745 | - ['node_shared=="true" and OS=="aix"', { | ||
| 745 | + ['node_shared=="true" and OS in "aix os400"', { | ||
| 746 | 746 | 'product_name': 'node_base', | |
| 747 | 747 | }], | |
| 748 | 748 | [ 'v8_enable_inspector==1', { | |
@@ -1432,7 +1432,7 @@ | |||
| 1432 | 1432 | ], # end targets | |
| 1433 | 1433 | ||
| 1434 | 1434 | 'conditions': [ | |
| 1435 | - ['OS=="aix" and node_shared=="true"', { | ||
| 1435 | + ['OS in "aix os400" and node_shared=="true"', { | ||
| 1436 | 1436 | 'targets': [ | |
| 1437 | 1437 | { | |
| 1438 | 1438 | 'target_name': 'node_aix_shared', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -156,7 +156,7 @@ | |||
| 156 | 156 | }, | |
| 157 | 157 | }, | |
| 158 | 158 | 'conditions': [ | |
| 159 | - ['OS!="aix" and OS!="ios" and node_shared=="false"', { | ||
| 159 | + ['OS!="aix" and OS!="os400" and OS!="ios" and node_shared=="false"', { | ||
| 160 | 160 | 'ldflags': [ | |
| 161 | 161 | '-Wl,--whole-archive', | |
| 162 | 162 | '<(obj_dir)/deps/zlib/<(STATIC_LIB_PREFIX)zlib<(STATIC_LIB_SUFFIX)', | |
@@ -195,7 +195,7 @@ | |||
| 195 | 195 | }, | |
| 196 | 196 | }, | |
| 197 | 197 | 'conditions': [ | |
| 198 | - ['OS!="aix" and OS!="ios" and node_shared=="false"', { | ||
| 198 | + ['OS!="aix" and OS!="os400" and OS!="ios" and node_shared=="false"', { | ||
| 199 | 199 | 'ldflags': [ | |
| 200 | 200 | '-Wl,--whole-archive', | |
| 201 | 201 | '<(obj_dir)/deps/uv/<(STATIC_LIB_PREFIX)uv<(STATIC_LIB_SUFFIX)', | |
@@ -233,7 +233,7 @@ | |||
| 233 | 233 | '-lkvm', | |
| 234 | 234 | ], | |
| 235 | 235 | }], | |
| 236 | - [ 'OS=="aix"', { | ||
| 236 | + [ 'OS in "aix os400"', { | ||
| 237 | 237 | 'defines': [ | |
| 238 | 238 | '_LINUX_SOURCE_COMPAT', | |
| 239 | 239 | '__STDC_FORMAT_MACROS', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | 'defines': [ 'V8_DEPRECATION_WARNINGS=1' ], | |
| 3 | 3 | 'conditions': [ | |
| 4 | - [ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', { | ||
| 4 | + [ 'OS in "linux freebsd openbsd solaris android aix os400 cloudabi"', { | ||
| 5 | 5 | 'cflags': ['-Wno-cast-function-type'], | |
| 6 | 6 | }], | |
| 7 | 7 | ], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | 'OTHER_LDFLAGS': [ '-Wl,-undefined', '-Wl,dynamic_lookup' ] | |
| 12 | 12 | }}], | |
| 13 | 13 | # Enable the shared object to be linked by runtime linker | |
| 14 | - ['OS=="aix"', { | ||
| 14 | + ['OS in "aix os400"', { | ||
| 15 | 15 | 'ldflags': [ '-Wl,-G' ] | |
| 16 | 16 | }]], | |
| 17 | 17 | }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments