SConscript (10685:a24286e33318) SConscript (10686:1922f9d2ac01)
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

--- 1047 unchanged lines hidden (view full) ---

1056
1057 # All supported clang versions have support for UBSan, so if
1058 # asked to use it, append the compiler and linker flags.
1059 if GetOption('with_ubsan'):
1060 new_env.Append(CCFLAGS='-fsanitize=undefined')
1061 new_env.Append(LINKFLAGS='-fsanitize=undefined')
1062
1063 werror_env = new_env.Clone()
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

--- 1047 unchanged lines hidden (view full) ---

1056
1057 # All supported clang versions have support for UBSan, so if
1058 # asked to use it, append the compiler and linker flags.
1059 if GetOption('with_ubsan'):
1060 new_env.Append(CCFLAGS='-fsanitize=undefined')
1061 new_env.Append(LINKFLAGS='-fsanitize=undefined')
1062
1063 werror_env = new_env.Clone()
1064 werror_env.Append(CCFLAGS='-Werror')
1064 # Treat warnings as errors but white list some warnings that we
1065 # want to allow (e.g., deprecation warnings).
1066 werror_env.Append(CCFLAGS=['-Werror',
1067 '-Wno-error=deprecated-declarations',
1068 '-Wno-error=deprecated',
1069 ])
1065
1066 def make_obj(source, static, extra_deps = None):
1067 '''This function adds the specified source to the correct
1068 build environment, and returns the corresponding SCons Object
1069 nodes'''
1070
1071 if source.swig:
1072 env = swig_env

--- 206 unchanged lines hidden ---
1070
1071 def make_obj(source, static, extra_deps = None):
1072 '''This function adds the specified source to the correct
1073 build environment, and returns the corresponding SCons Object
1074 nodes'''
1075
1076 if source.swig:
1077 env = swig_env

--- 206 unchanged lines hidden ---