SConscript (8656:44203702a57a) | 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 --- 840 unchanged lines hidden (view full) --- 849 swig_env.Append(CCFLAGS='-Werror') 850 if env['GCC']: 851 swig_env.Append(CCFLAGS='-Wno-uninitialized') 852 swig_env.Append(CCFLAGS='-Wno-sign-compare') 853 swig_env.Append(CCFLAGS='-Wno-parentheses') 854 swig_env.Append(CCFLAGS='-Wno-unused-label') 855 if compareVersions(env['GCC_VERSION'], '4.6.0') != -1: 856 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable') | 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 --- 840 unchanged lines hidden (view full) --- 849 swig_env.Append(CCFLAGS='-Werror') 850 if env['GCC']: 851 swig_env.Append(CCFLAGS='-Wno-uninitialized') 852 swig_env.Append(CCFLAGS='-Wno-sign-compare') 853 swig_env.Append(CCFLAGS='-Wno-parentheses') 854 swig_env.Append(CCFLAGS='-Wno-unused-label') 855 if compareVersions(env['GCC_VERSION'], '4.6.0') != -1: 856 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable') |
857 if env['CLANG']: 858 swig_env.Append(CCFLAGS=['-Wno-unused-label']) |
|
857 | 859 |
860 |
|
858 werror_env = new_env.Clone() 859 werror_env.Append(CCFLAGS='-Werror') 860 861 def make_obj(source, static, extra_deps = None): 862 '''This function adds the specified source to the correct 863 build environment, and returns the corresponding SCons Object 864 nodes''' 865 --- 57 unchanged lines hidden (view full) --- 923 new_env.Command(secondary_exename, exename, 924 MakeAction('ln $SOURCE $TARGET', Transform("HARDLINK"))) 925 926 new_env.M5Binary = targets[0] 927 envList.append(new_env) 928 929# Debug binary 930ccflags = {} | 861 werror_env = new_env.Clone() 862 werror_env.Append(CCFLAGS='-Werror') 863 864 def make_obj(source, static, extra_deps = None): 865 '''This function adds the specified source to the correct 866 build environment, and returns the corresponding SCons Object 867 nodes''' 868 --- 57 unchanged lines hidden (view full) --- 926 new_env.Command(secondary_exename, exename, 927 MakeAction('ln $SOURCE $TARGET', Transform("HARDLINK"))) 928 929 new_env.M5Binary = targets[0] 930 envList.append(new_env) 931 932# Debug binary 933ccflags = {} |
931if env['GCC']: | 934if env['GCC'] or env['CLANG']: |
932 if sys.platform == 'sunos5': 933 ccflags['debug'] = '-gstabs+' 934 else: 935 ccflags['debug'] = '-ggdb3' 936 ccflags['opt'] = '-g -O3' 937 ccflags['fast'] = '-O3' 938 ccflags['prof'] = '-O3 -g -pg' 939elif env['SUNCC']: --- 34 unchanged lines hidden --- | 935 if sys.platform == 'sunos5': 936 ccflags['debug'] = '-gstabs+' 937 else: 938 ccflags['debug'] = '-ggdb3' 939 ccflags['opt'] = '-g -O3' 940 ccflags['fast'] = '-O3' 941 ccflags['prof'] = '-O3 -g -pg' 942elif env['SUNCC']: --- 34 unchanged lines hidden --- |