Fix CCFLAGS handling

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
This commit is contained in:
Vinzenz Feenstra 2014-02-12 16:52:59 +01:00
parent 4ff524b5c9
commit 8b3fecb43d
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
EnsureSConsVersion(0,14); EnsureSConsVersion(0,14);
import string
import os import os
import os.path import os.path
import glob import glob
@ -165,6 +166,11 @@ for p in platform_list:
env = detect.create(env_base) env = detect.create(env_base)
else: else:
env = env_base.Clone() env = env_base.Clone()
CCFLAGS = env.get('CCFLAGS', '')
env['CCFLAGS'] = ''
env.Append(CCFLAGS=string.split(str(CCFLAGS)))
detect.configure(env) detect.configure(env)
env['platform'] = p env['platform'] = p
sys.path.remove("./platform/"+p) sys.path.remove("./platform/"+p)