diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2019-03-12 17:36:15 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2019-03-14 09:16:39 +0000 |
commit | 7b4df2bf4a383e83b812d36c22e15148b4b92ec0 (patch) | |
tree | 2e88650c76b7bad315c2381aad644f52e609c20f /SConstruct | |
parent | b5f72396016f49aef7ed16c4d692f3b7f7ebf6d8 (diff) | |
download | vixl-7b4df2bf4a383e83b812d36c22e15148b4b92ec0.tar.gz |
Disable -O3 to compile the tests in release mode.
Remove the -O3 flag to compile aarch32 and aarch64 tests in release
mode: it significantly speeds up the compilation time and doesn't
affect the execution time of the tests.
Change-Id: Icecc64e4324476dd3016e7bc45d9190454664a49
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -506,7 +506,8 @@ if CanTargetAArch32(env): test_aarch32_build_dir = PrepareVariantDir(join('test', 'aarch32'), TargetBuildDir(env)) test_objects.append(env.Object( Glob(join(test_aarch32_build_dir, '*.cc')), - CPPPATH = env['CPPPATH'] + [config.dir_tests])) + CPPPATH = env['CPPPATH'] + [config.dir_tests], + CCFLAGS = [flag for flag in env['CCFLAGS'] if flag != '-O3'])) # AArch64 support if CanTargetAArch64(env): @@ -538,7 +539,8 @@ if CanTargetAArch64(env): test_aarch64_build_dir = PrepareVariantDir(join('test', 'aarch64'), TargetBuildDir(env)) test_objects.append(env.Object( Glob(join(test_aarch64_build_dir, '*.cc')), - CPPPATH = env['CPPPATH'] + [config.dir_tests])) + CPPPATH = env['CPPPATH'] + [config.dir_tests], + CCFLAGS = [flag for flag in env['CCFLAGS'] if flag != '-O3'])) # The test requires building the example files with specific options, so we # create a separate variant dir for the example objects built this way. |