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 <scottmg@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Scott Graham 2018-02-02 14:04:48 -08:00 committed by Commit Bot
parent 885fb47a0d
commit 0dd11f6341

View File

@ -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