From 7a62554146ca29387f94607c8c591b23504b2418 Mon Sep 17 00:00:00 2001 From: alexcfyung Date: Tue, 15 Feb 2022 06:51:52 -0500 Subject: [PATCH] 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 Reviewed-By: James M Snell --- common.gypi | 2 +- configure.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common.gypi b/common.gypi index 537be24c2fabe0..2027a4e1050430 100644 --- a/common.gypi +++ b/common.gypi @@ -615,7 +615,7 @@ '-q64', ], # for addons due to v8config.h include of "zos-base.h": - 'include_dirs': ['$(ZOSLIB_INCLUDES)'], + 'include_dirs': ['<(zoslib_include_dir)'], }], ], } diff --git a/configure.py b/configure.py index 6329635e52c290..162f94fa7fa038 100755 --- a/configure.py +++ b/configure.py @@ -1158,7 +1158,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= is required.')