Do not compile external code with extra warnings, since we want to keep changes to this code minimal to allow easy upgrades.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@343 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Maarten ter Huurne 2008-08-27 09:44:16 +00:00
parent f8d7231be8
commit 411b81088b
1 changed files with 10 additions and 1 deletions

View File

@ -8,5 +8,14 @@ files = [
"PowerPCDisasm.cpp",
]
env_bochs = env.Copy()
def filterWarnings(flags):
return ' '.join(
flag
for flag in flags.split()
if not flag.startswith('-W')
)
env_bochs = env.Copy(
CCFLAGS = filterWarnings(env['CCFLAGS']),
CXXFLAGS = filterWarnings(env['CXXFLAGS']),
)
env_bochs.StaticLibrary("bdisasm", files)