From 311a5a2fdd5b6be8cee01b66991933397094204f Mon Sep 17 00:00:00 2001 From: Justin Cohen Date: Tue, 24 Mar 2020 16:53:56 -0400 Subject: [PATCH] Fix chromium build. Chromium's sources_assignment_filter broke the build. Change-Id: I741ce06feafcfe7abd69f65ad9c871b66452dd83 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2117368 Reviewed-by: Mark Mentovai Commit-Queue: Justin Cohen --- snapshot/BUILD.gn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snapshot/BUILD.gn b/snapshot/BUILD.gn index 60cf1df2..0a118d0f 100644 --- a/snapshot/BUILD.gn +++ b/snapshot/BUILD.gn @@ -17,6 +17,9 @@ import("../build/crashpad_fuzzer_test.gni") if (crashpad_is_in_chromium) { import("//build/config/compiler/compiler.gni") + + # Prevent Chromium source assignment filters from being inherited. + set_sources_assignment_filter([]) } static_library("snapshot") { @@ -124,7 +127,6 @@ static_library("snapshot") { } if (crashpad_is_linux || crashpad_is_android) { - set_sources_assignment_filter([]) sources += [ "linux/cpu_context_linux.cc", "linux/cpu_context_linux.h",