diff --git a/configure.py b/configure.py index 8f47595856ddc1..c456c47be8c406 100755 --- a/configure.py +++ b/configure.py @@ -2274,7 +2274,7 @@ def make_bin_override(): print_verbose("running: \n " + " ".join(['python', 'tools/gyp_node.py'] + gyp_args)) run_gyp(gyp_args) -if sys.platform == 'win32': +if options.compile_commands_json and sys.platform == 'win32': os.path.isfile('./compile_commands.json') and os.unlink('./compile_commands.json') shutil.copy2('./out/' + config['BUILDTYPE'] + '/compile_commands.json', './compile_commands.json') info('configure completed successfully')