Skip to content

Commit

Permalink
build: use zoslib_include_dir provided by node-gyp
Browse files Browse the repository at this point in the history
The path is based on the zoslib gyp path passed to configure.py
via --static-zoslib-gyp arg.

PR-URL: nodejs#41713
Co-authored-by: Gaby Baghdadi <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
2 people authored and danielleadams committed Apr 21, 2022
1 parent e84297b commit 0ef0039
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@
'-q64',
],
# for addons due to v8config.h include of "zos-base.h":
'include_dirs': ['$(ZOSLIB_INCLUDES)'],
'include_dirs': ['<(zoslib_include_dir)'],
}],
],
}
Expand Down
3 changes: 2 additions & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,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.')

Expand Down

0 comments on commit 0ef0039

Please sign in to comment.