SConscript (8349:931ef19535e0) | SConscript (8655:e4001326a5ba) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 77 unchanged lines hidden (view full) --- 86ElfFile('libelf_xlate.c') 87 88ElfFile('libelf_convert.c') 89ElfFile('libelf_fsize.c') 90ElfFile('libelf_msize.c') 91 92m4env = main.Clone() 93if m4env['GCC']: | 1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 77 unchanged lines hidden (view full) --- 86ElfFile('libelf_xlate.c') 87 88ElfFile('libelf_convert.c') 89ElfFile('libelf_fsize.c') 90ElfFile('libelf_msize.c') 91 92m4env = main.Clone() 93if m4env['GCC']: |
94 major,minor,dot = [ int(x) for x in m4env['CXXVERSION'].split('.')] | 94 major,minor,dot = [int(x) for x in m4env['GCC_VERSION'].split('.')] |
95 if major >= 4: 96 m4env.Append(CCFLAGS=['-Wno-pointer-sign']) 97m4env.Append(CCFLAGS=['-Wno-implicit']) 98del m4env['CPPPATH'] 99 100# If we have gm4 use it 101if m4env.Detect('gm4'): 102 m4env['M4'] = 'gm4' --- 25 unchanged lines hidden --- | 95 if major >= 4: 96 m4env.Append(CCFLAGS=['-Wno-pointer-sign']) 97m4env.Append(CCFLAGS=['-Wno-implicit']) 98del m4env['CPPPATH'] 99 100# If we have gm4 use it 101if m4env.Detect('gm4'): 102 m4env['M4'] = 'gm4' --- 25 unchanged lines hidden --- |