summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorj4ck.fr0st <j4ck.fr0st@gmail.com>2010-01-16 12:22:53 +0000
committerj4ck.fr0st <j4ck.fr0st@gmail.com>2010-01-16 12:22:53 +0000
commit93bb45aaf2a5409edaa84228cbb8cc1d16ff44b3 (patch)
treea1e6364fee325f979d8e07a7222a88582f31695a /SConstruct
parentf3b52ea23de420e7e02aef26187ad5fe940614c3 (diff)
Another scons fix/hack for OSX.
wx-config keeps returning -arch i386, breaking 64-bit builds. Thats the only place where a tuple occurs, filtering out non-strings should be fine for now until we find a better way to do this. This commit only affects Mac OSX. utils.py is reverted on purpose. if anything like this happens again, it will most likely fail and indicate more work. Thanks to tmator and knatsch who tested the patch on r4843 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4851 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct13
1 files changed, 13 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 228faa4d84..9bc0db6d54 100644
--- a/SConstruct
+++ b/SConstruct
@@ -364,6 +364,19 @@ conf.Finish()
#wx windows flags
if env['HAVE_WX']:
wxconfig.ParseWXConfig(env)
+ #this smells like a hack, but i dont know any other way to fix this
+ #right now. ParseWXConfig calls wx-config --libs, which returns
+ #"-arch i386" on my box (and probably also tmator's).
+ #SCons.ParseConfig makes this a tuple, which is
+ # 1) a problem for utils.filterWarnings
+ # 2) a duplicate (and conflicting) set of arch specifiers
+ #this mainly affects MacOSX, since darwin builds explicitly get
+ #those set around line 280.
+ if sys.platform == 'darwin':
+ env['CCFLAGS'] = [
+ f
+ for f in filter(lambda x:isinstance(x, basestring), env['CCFLAGS'])
+ ]
else:
print "WX not found or disabled, not building GUI"