SConscript (8655:e4001326a5ba) | SConscript (8737:770ccf3af571) |
---|---|
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 --- 80 unchanged lines hidden (view full) --- 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['GCC_VERSION'].split('.')] 95 if major >= 4: 96 m4env.Append(CCFLAGS=['-Wno-pointer-sign']) | 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 --- 80 unchanged lines hidden (view full) --- 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['GCC_VERSION'].split('.')] 95 if major >= 4: 96 m4env.Append(CCFLAGS=['-Wno-pointer-sign']) |
97if m4env['CLANG']: 98 m4env.Append(CCFLAGS=['-Wno-initializer-overrides', '-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' 103 104# Check that m4 is available --- 23 unchanged lines hidden --- | 99m4env.Append(CCFLAGS=['-Wno-implicit']) 100del m4env['CPPPATH'] 101 102# If we have gm4 use it 103if m4env.Detect('gm4'): 104 m4env['M4'] = 'gm4' 105 106# Check that m4 is available --- 23 unchanged lines hidden --- |