aboutsummaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorThomas <hakerh403@gmail.com>2020-04-28 21:34:22 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2020-05-25 19:23:09 +0200
commit5e4c025567c688f3e7bd1d253619edafafbb7fcf (patch)
tree139e1390127a85eabb31f62b14d1751d6ed4db27 /configure.py
parente30a65193792d76e204e4558a404b7e9d5a12f41 (diff)
downloadios-node-v8-5e4c025567c688f3e7bd1d253619edafafbb7fcf.tar.gz
ios-node-v8-5e4c025567c688f3e7bd1d253619edafafbb7fcf.tar.bz2
ios-node-v8-5e4c025567c688f3e7bd1d253619edafafbb7fcf.zip
build: fix makefile script on windows
On Windows there is a program "find.exe" located in C:\Windows\System32, which is usually in the PATH before MSYS version of that program (required for running makefile). The Windows version of the program uses different CLI syntax, which results in errors like "File not found - *node_modules*" This commit specifies the full path to the program, which is also properly handled by MSYS on Windows. PR-URL: https://github.com/nodejs/node/pull/33136 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index a8cdce4d22..517da8cc23 100755
--- a/configure.py
+++ b/configure.py
@@ -1796,6 +1796,10 @@ if options.prefix:
if options.use_ninja:
config['BUILD_WITH'] = 'ninja'
+# On Windows there is another find.exe in C:\Windows\System32
+if sys.platform == 'win32':
+ config['FIND'] = '/usr/bin/find'
+
config_lines = ['='.join((k,v)) for k,v in config.items()]
# Add a blank string to get a blank line at the end.
config_lines += ['']