aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-01-31 13:26:15 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-31 20:49:19 +0000
commit987360687ac551cbfdc0bdcc8ed53c7c48843abf (patch)
tree5ac1291169d4441a5474abae52c3877d4d1b9459 /bench
parent63afe64a5f33a61235706dbec0f0cc695c88469b (diff)
Make flag parsing work in GN-built iOS nanobench.
Just like DM. CQ_INCLUDE_TRYBOTS=skia.primary:Test-iOS-Clang-iPadMini4-GPU-GX6450-Arm7-Debug,Build-Mac-Clang-arm64-Debug-GN_iOS Change-Id: I4af3fa1813e3b7ee48407096e91373b5fee569c7 Reviewed-on: https://skia-review.googlesource.com/7824 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'bench')
-rw-r--r--bench/nanobench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 887fab3bad..c2afca65cb 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -1361,7 +1361,7 @@ int nanobench_main() {
return 0;
}
-#if !defined SK_BUILD_FOR_IOS
+#if !defined(SK_BUILD_FOR_IOS) || defined(NANOBENCH_DEFINE_MAIN)
int main(int argc, char** argv) {
SkCommandLineFlags::Parse(argc, argv);
return nanobench_main();