Skip to content

Commit 7f347fc

Browse files
committed
build: fix getting OpenSSL version on Windows
Node.js on Windows is built with `clang`, not `gcc`. PR-URL: #59609 Reviewed-By: Stefan Stojanovic <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 8dbd0f1 commit 7f347fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
original_argv = sys.argv[1:]
2121

2222
# gcc and g++ as defaults matches what GYP's Makefile generator does,
23-
# except on OS X.
24-
CC = os.environ.get('CC', 'cc' if sys.platform == 'darwin' else 'gcc')
25-
CXX = os.environ.get('CXX', 'c++' if sys.platform == 'darwin' else 'g++')
23+
# except on macOS and Windows.
24+
CC = os.environ.get('CC', 'cc' if sys.platform == 'darwin' else 'clang' if sys.platform == 'win32' else 'gcc')
25+
CXX = os.environ.get('CXX', 'c++' if sys.platform == 'darwin' else 'clang' if sys.platform == 'win32' else 'g++')
2626

2727
tools_path = Path('tools')
2828

0 commit comments

Comments
 (0)