Unset CC and CXX in MSVC builds, if set

This commit is contained in:
Robin Dunn
2019-04-16 20:04:16 -07:00
parent 7383d34fce
commit e35c48442c

View File

@@ -195,6 +195,12 @@ class Configuration(object):
]
self.lflags = None
# These confuse WAF, but since it already reliably picks the correct
# MSVC it shouldn't hurt to get rid of them.
for name in ['CC', 'CXX']:
if os.environ.get(name):
os.environ.pop(name)
# Other MSVC flags...
# Uncomment these to have debug info for all kinds of builds
#self.cflags += ['/Od', '/Z7']