From 0dd11f63411204cfedfa52bf0617573fa80abb00 Mon Sep 17 00:00:00 2001 From: Scott Graham Date: Fri, 2 Feb 2018 14:04:48 -0800 Subject: [PATCH] gn: Guard addition of ELF test target Fix Windows- and Mac-in-Chromium GN builds. Bug: crashpad:79 Change-Id: I952f364ed679a13f656a8db18fb4d1fbf5858c17 Reviewed-on: https://chromium-review.googlesource.com/900206 Commit-Queue: Scott Graham Reviewed-by: Mark Mentovai --- snapshot/BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snapshot/BUILD.gn b/snapshot/BUILD.gn index ad07e23a..e1d24002 100644 --- a/snapshot/BUILD.gn +++ b/snapshot/BUILD.gn @@ -354,7 +354,6 @@ source_set("snapshot_test") { ":crashpad_snapshot_test_module", ":crashpad_snapshot_test_module_large", ":crashpad_snapshot_test_module_small", - ":crashpad_snapshot_test_both_dt_hash_styles", ] if (crashpad_is_mac) { @@ -370,6 +369,10 @@ source_set("snapshot_test") { libs = [ "dl" ] } + if (crashpad_is_linux || crashpad_is_android || crashpad_is_fuchsia) { + data_deps += [ ":crashpad_snapshot_test_both_dt_hash_styles" ] + } + if (crashpad_is_win) { cflags = [ "/wd4201" ] # nonstandard extension used : nameless struct/union