diff options
author | himself65 <himself65@mask.io> | 2021-07-07 19:19:00 +0300 |
---|---|---|
committer | himself65 <himself65@mask.io> | 2021-07-14 05:44:56 +0300 |
commit | cfb7c4f658005cd4f16737e5bc9e8e9cd403d40e (patch) | |
tree | e1180a107ceae324c4c9eb34e1601beeaa859876 /configure.py | |
parent | c506660f326750a9cbde6a715b357d42d2c46a0a (diff) |
build: add `library_files` to gyp variables
GYP uses the system path when parsing node.gyp;
However, if system python is different from our
gyp runtime python, like '2.7', gyp would crash.
Co-authored-by: Michaël Zasso <targos@protonmail.com>
PR-URL: https://github.com/nodejs/node/pull/39293
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.py b/configure.py index d69c52521d8..1e9ee8adf3c 100755 --- a/configure.py +++ b/configure.py @@ -45,6 +45,7 @@ import getmoduleversion import getnapibuildversion import getsharedopensslhasquic from gyp_node import run_gyp +from utils import SearchFiles # parse our options parser = argparse.ArgumentParser() @@ -1155,6 +1156,8 @@ def gcc_version_ge(version_checked): return False return True +def configure_node_lib_files(o): + o['variables']['node_library_files'] = SearchFiles('lib', 'js') def configure_node(o): if options.dest_os == 'android': @@ -1903,6 +1906,7 @@ if (options.dest_os): flavor = GetFlavor(flavor_params) configure_node(output) +configure_node_lib_files(output) configure_napi(output) configure_library('zlib', output) configure_library('http_parser', output) |