SConscript (9388:b958d9fa867c) | SConscript (9420:965d857ac791) |
---|---|
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 --- 79 unchanged lines hidden (view full) --- 88ElfFile('libelf_xlate.c') 89 90ElfFile('libelf_convert.c') 91ElfFile('libelf_fsize.c') 92ElfFile('libelf_msize.c') 93 94m4env = main.Clone() 95if 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 --- 79 unchanged lines hidden (view full) --- 88ElfFile('libelf_xlate.c') 89 90ElfFile('libelf_convert.c') 91ElfFile('libelf_fsize.c') 92ElfFile('libelf_msize.c') 93 94m4env = main.Clone() 95if m4env['GCC']: |
96 if compareVersions(m4env['GCC_VERSION'], '4') >= 0: 97 m4env.Append(CCFLAGS=['-Wno-pointer-sign']) | 96 m4env.Append(CCFLAGS=['-Wno-pointer-sign']) |
98 if compareVersions(m4env['GCC_VERSION'], '4.6') >= 0: 99 m4env.Append(CCFLAGS=['-Wno-unused-but-set-variable', 100 '-Wno-implicit-function-declaration']) 101if m4env['CLANG']: 102 m4env.Append(CCFLAGS=['-Wno-initializer-overrides', '-Wno-pointer-sign']) 103 # clang defaults to c99 (while gcc defaults to gnu89) and there is a 104 # difference in the handling of inlining functions which causes 105 # linking problems with multiple definitions of the symbols in --- 33 unchanged lines hidden --- | 97 if compareVersions(m4env['GCC_VERSION'], '4.6') >= 0: 98 m4env.Append(CCFLAGS=['-Wno-unused-but-set-variable', 99 '-Wno-implicit-function-declaration']) 100if m4env['CLANG']: 101 m4env.Append(CCFLAGS=['-Wno-initializer-overrides', '-Wno-pointer-sign']) 102 # clang defaults to c99 (while gcc defaults to gnu89) and there is a 103 # difference in the handling of inlining functions which causes 104 # linking problems with multiple definitions of the symbols in --- 33 unchanged lines hidden --- |