From 8b3fecb43dbe50a9952a27f7fbc221158e0a1f03 Mon Sep 17 00:00:00 2001 From: Vinzenz Feenstra Date: Wed, 12 Feb 2014 16:52:59 +0100 Subject: [PATCH] Fix CCFLAGS handling Signed-off-by: Vinzenz Feenstra --- SConstruct | 6 ++++++ 1 file changed, 6 insertions(+) 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)