def load_profile_gcc_settings(conf):
    """
	Setup all compiler/linker flags with are shared over all targets using the gcc compiler
	for the "profile" configuration	
	"""
    v = conf.env
    conf.load_gcc_common_settings()

    COMPILER_FLAGS = ['-O2', '-fno-strict-aliasing']

    v['CFLAGS'] += COMPILER_FLAGS
    v['CXXFLAGS'] += COMPILER_FLAGS
def load_release_gcc_settings(conf):
	"""
	Setup all compiler/linker flags with are shared over all targets using the gcc compiler
	for the "release" configuration	
	"""
	v = conf.env
	conf.load_gcc_common_settings()
	
	COMPILER_FLAGS = [
		'-O2',
		]
	
	v['CFLAGS'] += COMPILER_FLAGS
	v['CXXFLAGS'] += COMPILER_FLAGS	
Ejemplo n.º 3
0
def load_release_gcc_settings(conf):
	"""
	Setup all compiler/linker flags with are shared over all targets using the gcc compiler
	for the "release" configuration	
	"""
	v = conf.env
	conf.load_gcc_common_settings()
	
	COMPILER_FLAGS = [
		'-O2',
		]
	
	v['CFLAGS'] += COMPILER_FLAGS
	v['CXXFLAGS'] += COMPILER_FLAGS	
def load_debug_gcc_settings(conf):
	"""
	Setup all compiler/linker flags with are shared over all targets using the gcc compiler
	for the "debug" configuration	
	"""	
	v = conf.env	
	
	conf.load_gcc_common_settings()
	
	COMPILER_FLAGS = [
		'-O0',		# No optimization
		]
	
	v['CFLAGS'] += COMPILER_FLAGS
	v['CXXFLAGS'] += COMPILER_FLAGS
Ejemplo n.º 5
0
def load_debug_gcc_settings(conf):
	"""
	Setup all compiler/linker flags with are shared over all targets using the gcc compiler
	for the "debug" configuration	
	"""	
	v = conf.env	
	
	conf.load_gcc_common_settings()
	
	COMPILER_FLAGS = [
		'-O0',		# No optimization
		]
	
	v['CFLAGS'] += COMPILER_FLAGS
	v['CXXFLAGS'] += COMPILER_FLAGS
Ejemplo n.º 6
0
def load_debug_gcc_settings(conf):
    """
    Setup all compiler/linker flags with are shared over all targets using the gcc compiler
    for the "debug" configuration   
    """
    v = conf.env

    conf.load_gcc_common_settings()

    COMPILER_FLAGS = [
        '-O0',  # No optimization
        '-g',  # debug symbols
        '-fno-inline',  # don't inline functions
        '-fstack-protector'  # Add additional checks to catch stack corruption issues
    ]

    v['CFLAGS'] += COMPILER_FLAGS
    v['CXXFLAGS'] += COMPILER_FLAGS