From 2b73a30fba9b4f129aae127632e1f2d9eb4ea083 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 6 Jul 2017 11:49:32 -0700 Subject: [PATCH] Build benchmarks in release mode --- script/benchmark | 4 ++-- tests.gyp | 42 ++++++++++++++++++++++-------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/script/benchmark b/script/benchmark index 6398ebe7..84225d05 100755 --- a/script/benchmark +++ b/script/benchmark @@ -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 diff --git a/tests.gyp b/tests.gyp index 5515effb..915bb3c7 100644 --- a/tests.gyp +++ b/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 @@ '