From 0ef00391527b5b12f206b0f09b1703a5f9d743a0 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 fae718a7cb563b..bdc2c105abeddc 100644 --- a/common.gypi +++ b/common.gypi @@ -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)'], }], ], } diff --git a/configure.py b/configure.py index 55549c60223130..95b31769cb5756 100755 --- a/configure.py +++ b/configure.py @@ -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= is required.')