changeset fdfd6e4aad66 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=fdfd6e4aad66
description:
        scons: only use -Wno-pointer-sign with gcc >= 4.3

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
ext/libelf/SConscript |    3 ++-

diffs (16 lines):

diff -r f07df23e1fc8 -r fdfd6e4aad66 ext/libelf/SConscript
--- a/ext/libelf/SConscript     Sat Dec 06 14:18:18 2008 -0800
+++ b/ext/libelf/SConscript     Sat Dec 06 14:18:18 2008 -0800
@@ -88,7 +88,11 @@
 ElfFile('libelf_msize.c')
 
 m4env = env.Copy()
-m4env.Append(CCFLAGS=['-Wno-pointer-sign', '-Wno-implicit'])
+if env['GCC']:
+    major,minor,dot = [ int(x) for x in env['CXXVERSION'].split('.')]
+    if major >= 4:
+        m4env.Append(CCFLAGS=['-Wno-pointer-sign'])
+m4env.Append(CCFLAGS=['-Wno-implicit'])
 del m4env['CPPPATH']
 
 # If we have gm4 use it
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to