From a87f1c140ed24deeaf4f512b2f8f3037556bf9a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Thu, 4 Sep 2025 11:28:24 +0200 Subject: [PATCH] build: fix getting OpenSSL version on Windows Node.js on Windows is built with `clang`, not `gcc`. PR-URL: https://github.com/nodejs/node/pull/59609 Reviewed-By: Stefan Stojanovic Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- configure.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.py b/configure.py index b6810a2f50..7dcfa9dfac 100755 --- a/configure.py +++ b/configure.py @@ -20,9 +20,9 @@ os.chdir(Path(__file__).parent) original_argv = sys.argv[1:] # gcc and g++ as defaults matches what GYP's Makefile generator does, -# except on OS X. -CC = os.environ.get('CC', 'cc' if sys.platform == 'darwin' else 'gcc') -CXX = os.environ.get('CXX', 'c++' if sys.platform == 'darwin' else 'g++') +# except on macOS and Windows. +CC = os.environ.get('CC', 'cc' if sys.platform == 'darwin' else 'clang' if sys.platform == 'win32' else 'gcc') +CXX = os.environ.get('CXX', 'c++' if sys.platform == 'darwin' else 'clang' if sys.platform == 'win32' else 'g++') tools_path = Path('tools')