Skip to content

Commit 129a1d6

Browse files
targosrichardlau
authored andcommitted
build: fix getting OpenSSL version on Windows
Node.js on Windows is built with `clang`, not `gcc`. PR-URL: #59609 Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 92100a8 commit 129a1d6

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)