|
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') |
@@ -1302,7 +1302,7 @@ def configure_node(o): |
1302 | 1302 | elif sys.platform == 'zos': |
1303 | 1303 | configure_zos(o) |
1304 | 1304 |
|
1305 | | - if flavor == 'aix': |
| 1305 | + if flavor in ('aix', 'os400'): |
1306 | 1306 | o['variables']['node_target_type'] = 'static_library' |
1307 | 1307 |
|
1308 | 1308 | if target_arch in ('x86', 'x64', 'ia32', 'x32'): |
@@ -1403,6 +1403,8 @@ def configure_node(o): |
1403 | 1403 | shlib_suffix = '%s.dylib' |
1404 | 1404 | elif sys.platform.startswith('aix'): |
1405 | 1405 | shlib_suffix = '%s.a' |
| 1406 | + elif sys.platform == 'os400': |
| 1407 | + shlib_suffix = '%s.a' |
1406 | 1408 | elif sys.platform.startswith('zos'): |
1407 | 1409 | shlib_suffix = '%s.x' |
1408 | 1410 | else: |
@@ -1916,6 +1918,9 @@ def icu_download(path): |
1916 | 1918 | elif flavor == 'mac': |
1917 | 1919 | icu_config['variables']['icu_asm_ext'] = 'S' |
1918 | 1920 | icu_config['variables']['icu_asm_opts'] = [ '-a', 'gcc-darwin' ] |
| 1921 | + elif sys.platform == 'os400': |
| 1922 | + icu_config['variables']['icu_asm_ext'] = 'S' |
| 1923 | + icu_config['variables']['icu_asm_opts'] = [ '-a', 'xlc' ] |
1919 | 1924 | elif sys.platform.startswith('aix'): |
1920 | 1925 | icu_config['variables']['icu_asm_ext'] = 'S' |
1921 | 1926 | icu_config['variables']['icu_asm_opts'] = [ '-a', 'xlc' ] |
|
0 commit comments