|
848 | 848 | static_optgroup.add_argument('--static-zoslib-gyp', |
849 | 849 | action='store', |
850 | 850 | dest='static_zoslib_gyp', |
851 | | - help='path to zoslib.gyp file for includes and to link to static zoslib library') |
| 851 | + help='path to zoslib.gyp file for includes and to link to static zoslib libraries') |
852 | 852 |
|
853 | 853 | parser.add_argument('--tag', |
854 | 854 | action='store', |
@@ -1865,12 +1865,13 @@ def configure_mips(o, target_arch): |
1865 | 1865 | o['variables']['v8_host_byteorder'] = host_byteorder |
1866 | 1866 |
|
1867 | 1867 | def configure_zos(o): |
1868 | | - o['variables']['node_static_zoslib'] = b(True) |
1869 | | - if options.static_zoslib_gyp: |
1870 | | - # Apply to all Node.js components for now |
1871 | | - o['variables']['zoslib_include_dir'] = Path(options.static_zoslib_gyp).parent / 'include' |
| 1868 | + if os.environ.get('ZOSLIB_INCLUDES'): |
| 1869 | + o['variables']['zoslib_include_dir'] = os.environ.get('ZOSLIB_INCLUDES') |
1872 | 1870 | o['include_dirs'] += [o['variables']['zoslib_include_dir']] |
1873 | 1871 | else: |
| 1872 | + raise Exception('Environment variable ZOSLIB_INCLUDES=<path to zoslib/include dir> is required.') |
| 1873 | + |
| 1874 | + if not options.static_zoslib_gyp: |
1874 | 1875 | raise Exception('--static-zoslib-gyp=<path to zoslib.gyp file> is required.') |
1875 | 1876 |
|
1876 | 1877 | def clang_version_ge(version_checked): |
@@ -2795,8 +2796,8 @@ def icu_download(path): |
2795 | 2796 | icu_config['variables']['icu_asm_ext'] = 'S' |
2796 | 2797 | icu_config['variables']['icu_asm_opts'] = [ '-a', 'xlc' ] |
2797 | 2798 | elif sys.platform == 'zos': |
2798 | | - icu_config['variables']['icu_asm_ext'] = 'S' |
2799 | | - icu_config['variables']['icu_asm_opts'] = [ '-a', 'zos' ] |
| 2799 | + icu_config['variables']['icu_asm_ext'] = 'c' |
| 2800 | + icu_config['variables']['icu_asm_opts'] = [] |
2800 | 2801 | else: |
2801 | 2802 | # assume GCC-compatible asm is OK |
2802 | 2803 | icu_config['variables']['icu_asm_ext'] = 'S' |
|
0 commit comments