Build benchmarks in release mode
This commit is contained in:
parent
a64db98218
commit
2b73a30fba
2 changed files with 24 additions and 22 deletions
|
|
@ -30,8 +30,8 @@ if [ "$(uname -s)" == "Darwin" ]; then
|
|||
fi
|
||||
|
||||
mode=normal
|
||||
export BUILDTYPE=Test
|
||||
cmd=out/Test/benchmarks
|
||||
export BUILDTYPE=Release
|
||||
cmd=out/$BUILDTYPE/benchmarks
|
||||
run_scan_build=
|
||||
|
||||
while getopts "bdhf:l:SL" option; do
|
||||
|
|
|
|||
42
tests.gyp
42
tests.gyp
|
|
@ -2,6 +2,7 @@
|
|||
'targets': [
|
||||
{
|
||||
'target_name': 'benchmarks',
|
||||
'default_configuration': 'Release',
|
||||
'type': 'executable',
|
||||
'dependencies': [
|
||||
'project.gyp:runtime',
|
||||
|
|
@ -18,11 +19,11 @@
|
|||
'test/helpers/load_language.cc',
|
||||
'test/helpers/read_test_entries.cc',
|
||||
'test/helpers/stderr_logger.cc',
|
||||
'test/helpers/record_alloc.cc',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'tests',
|
||||
'default_configuration': 'Test',
|
||||
'type': 'executable',
|
||||
'dependencies': [
|
||||
'project.gyp:runtime',
|
||||
|
|
@ -42,34 +43,35 @@
|
|||
'<!@(find test/integration -name "*.cc")',
|
||||
'<!@(find test/helpers -name "*.cc")',
|
||||
],
|
||||
'cflags': [
|
||||
'-g',
|
||||
'-O0',
|
||||
'-Wall',
|
||||
'-Wextra',
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-unknown-pragmas',
|
||||
],
|
||||
'ldflags': ['-g'],
|
||||
'xcode_settings': {
|
||||
'OTHER_LDFLAGS': ['-g'],
|
||||
'OTHER_CPLUSPLUSFLAGS': ['-fsanitize=address'],
|
||||
'GCC_OPTIMIZATION_LEVEL': '0',
|
||||
'WARNING_CFLAGS': [
|
||||
'-Wall',
|
||||
'-Wextra',
|
||||
'-Wno-unused-parameter'
|
||||
],
|
||||
},
|
||||
}
|
||||
],
|
||||
|
||||
'target_defaults': {
|
||||
'default_configuration': 'Test',
|
||||
'configurations': {'Test': {}, 'Release': {}},
|
||||
'cflags': [
|
||||
'-g',
|
||||
'-O0',
|
||||
'-Wall',
|
||||
'-Wextra',
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-unknown-pragmas',
|
||||
],
|
||||
'cflags_cc': ['-std=c++14'],
|
||||
'ldflags': ['-g'],
|
||||
'libraries': ['-ldl'],
|
||||
'xcode_settings': {
|
||||
'CLANG_CXX_LANGUAGE_STANDARD': 'c++14',
|
||||
'OTHER_LDFLAGS': ['-g'],
|
||||
'OTHER_CPLUSPLUSFLAGS': ['-fsanitize=address'],
|
||||
'GCC_OPTIMIZATION_LEVEL': '0',
|
||||
'ALWAYS_SEARCH_USER_PATHS': 'NO',
|
||||
'WARNING_CFLAGS': [
|
||||
'-Wall',
|
||||
'-Wextra',
|
||||
'-Wno-unused-parameter'
|
||||
],
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue