summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2015-01-08 10:31:43 -0500
committerJonathan Reams <jbreams@mongodb.com>2015-01-08 14:27:03 -0500
commit0d3f90da143ade30ce876eeb104b104e20264e7f (patch)
tree1e1c5f004acb4292d728140cb4971bb7ecb0bbc6 /SConstruct
parent8e68f8f8b2b42bcaea63e4aa70c4505c6711cbbe (diff)
downloadmongo-0d3f90da143ade30ce876eeb104b104e20264e7f.tar.gz
SERVER-14310 Customizing the C++ compiler with --cxx but not customizing --cc should be a build error
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 700ecc3d131..de6df62c0c6 100644
--- a/SConstruct
+++ b/SConstruct
@@ -622,9 +622,14 @@ if has_option( "cc-use-shell-environment" ):
env["CC"] = os.getenv("CC");
if has_option( "cxx" ):
- env["CC"] = get_option( "cxx" )
+ if not has_option( "cc" ):
+ print "Must specify C compiler when specifying C++ compiler"
+ exit(1)
env["CXX"] = get_option( "cxx" )
if has_option( "cc" ):
+ if not has_option( "cxx" ):
+ print "Must specify C++ compiler when specifying C compiler"
+ exit(1)
env["CC"] = get_option( "cc" )
if has_option( "ld" ):