diff options
author | alexcfyung <alexcfyung@hotmail.com> | 2022-02-15 14:51:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 14:51:52 +0300 |
commit | e0fa7e06083969a7d00e9b5cfa2b7f84831cb287 (patch) | |
tree | 9cec59968c2a67d9707f823a703fccd0262af88e /configure.py | |
parent | ee38bbd4cfc9d515b185fb406ffce5919e63bafa (diff) |
build: use zoslib_include_dir provided by node-gyp
The path is based on the zoslib gyp path passed to configure.py
via --static-zoslib-gyp arg.
PR-URL: https://github.com/nodejs/node/pull/41713
Co-authored-by: Gaby Baghdadi <baghdadi@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.py b/configure.py index 9a740caf14e..8f74784cc0c 100755 --- a/configure.py +++ b/configure.py @@ -1159,7 +1159,8 @@ def configure_zos(o): o['variables']['node_static_zoslib'] = b(True) if options.static_zoslib_gyp: # Apply to all Node.js components for now - o['include_dirs'] += [os.path.dirname(options.static_zoslib_gyp) + '/include'] + o['variables']['zoslib_include_dir'] = os.path.dirname(options.static_zoslib_gyp) + '/include' + o['include_dirs'] += [o['variables']['zoslib_include_dir']] else: raise Exception('--static-zoslib-gyp=<path to zoslib.gyp file> is required.') |