Skip to content

Commit 8b2363d

Browse files
committed
configure: use gcc and g++ as CC and CXX defaults
It matches what GYP's Makefile generator does and it should improve compiler detection because cc and c++ are not always gcc and g++. Fixes: #1173 PR-URL: #1174 Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
1 parent 08ec897 commit 8b2363d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

configure

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import sys
99
import shutil
1010
import string
1111

12-
CC = os.environ.get('CC', 'cc')
13-
CXX = os.environ.get('CXX', 'c++')
12+
# gcc and g++ as defaults matches what GYP's Makefile generator does.
13+
CC = os.environ.get('CC', 'gcc')
14+
CXX = os.environ.get('CXX', 'g++')
1415

1516
root_dir = os.path.dirname(__file__)
1617
sys.path.insert(0, os.path.join(root_dir, 'tools', 'gyp', 'pylib'))

0 commit comments

Comments
 (0)