Make python build script use g++ for CC and CXX

This commit is contained in:
Ian Bell
2014-11-25 21:19:12 +01:00
parent 38b4348a7f
commit e236d44989

View File

@@ -249,8 +249,9 @@ if __name__=='__main__':
try:
macVersion = platform.mac_ver()[0].split('.')
if int(macVersion[0]) >= 10 and int(macVersion[1]) > 8:
#os.environ["CC"] = "gcc-4.8"
os.environ["CC"] = "g++"
os.environ["CXX"] = "g++"
print('switching compiler to g++ for OSX')
except:
pass