From 9b7db5440e4b5fdcc0efb1372563db88191a7c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Thu, 27 Jun 2013 20:58:07 +0200 Subject: [PATCH] Allow CC shell environment to override compiler --- SConstruct | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SConstruct b/SConstruct index 695afbe..d32cd4d 100644 --- a/SConstruct +++ b/SConstruct @@ -59,6 +59,11 @@ def InstallPerm(env, dest, files, perm): env = Environment(tools = ['default', 'textfile']) + +#allow shell environment to override compiler +if os.environ.has_key('CC'): + env['CC'] = os.environ['CC'] + env.AddMethod(InstallPerm) Export('env', 'build_type', 'prefix', 'version_info', 'test_xml')