Skip to content

Commit

Permalink
configure: use gcc and g++ as CC and CXX defaults
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bnoordhuis committed Mar 17, 2015
1 parent 08ec897 commit 8b2363d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import sys
import shutil
import string

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

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

0 comments on commit 8b2363d

Please sign in to comment.