From 5e4c025567c688f3e7bd1d253619edafafbb7fcf Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 28 Apr 2020 21:34:22 +0200 Subject: 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 Reviewed-By: Ruben Bridgewater Reviewed-By: Ben Noordhuis --- configure.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.py') 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 += [''] -- cgit v1.2.1