diff options
author | reduz <reduzio@gmail.com> | 2014-02-14 03:30:51 -0200 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2014-02-14 03:30:51 -0200 |
commit | c12a8e922ff724d7fe9909c16f9a1b5aec7f010b (patch) | |
tree | 997c71221bda3917aafedc2ead8ce56dd12361cb | |
parent | e0b4ea2731af23d3644b657e4c0fab2af7ddb0f4 (diff) | |
parent | 8b3fecb43dbe50a9952a27f7fbc221158e0a1f03 (diff) |
Merge pull request #62 from vinzenz/ccflags-handling
Fix CCFLAGS handling
-rw-r--r-- | SConstruct | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 28225ca76a..6bd2bbf986 100644 --- a/SConstruct +++ b/SConstruct @@ -1,5 +1,6 @@ EnsureSConsVersion(0,14); +import string import os import os.path import glob @@ -165,6 +166,11 @@ for p in platform_list: env = detect.create(env_base) else: env = env_base.Clone() + + CCFLAGS = env.get('CCFLAGS', '') + env['CCFLAGS'] = '' + + env.Append(CCFLAGS=string.split(str(CCFLAGS))) detect.configure(env) env['platform'] = p sys.path.remove("./platform/"+p) |