summaryrefslogtreecommitdiff
path: root/Makefile.toolchain
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2019-07-03 15:00:34 -0700
committerManoj Gupta <manojgupta@chromium.org>2019-07-03 22:10:43 +0000
commit50c3f64b55419517ddd09e6c15eb9df6a5c176b9 (patch)
tree1adccc0171ebe58c84015d3d00edb4597031a2dc /Makefile.toolchain
parent36e4e9bb2ea2d74e14cec29e3104932d1289f530 (diff)
downloadchrome-ec-50c3f64b55419517ddd09e6c15eb9df6a5c176b9.tar.gz
ec: Pass -fno-experimental-new-pass-manager when building fuzzers
New pass manager in clang is breaking EC builds. Fix by explicitily passing -fno-experimental-new-pass-manager in EC makefile when building fuzzers. BUG=chromium:955021 TEST=fuzzers work. Change-Id: Ia4f62bb94b144772a845fe9974588dcb00eabe9c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1688411 Commit-Queue: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r--Makefile.toolchain3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain
index 84de4d73f1..1a3e47e010 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -70,7 +70,8 @@ CFLAGS_TEST=$(if $(TEST_BUILD),-DTEST_BUILD=$(EMPTY) \
$(if $(TEST_ASAN),-fsanitize=address) \
$(if $(TEST_MSAN),-fsanitize=memory) \
$(if $(TEST_UBSAN),$(UBSAN_FLAGS)) \
- $(if $(TEST_FUZZ),-fsanitize=fuzzer-no-link -DTEST_FUZZ=$(EMPTY))
+ $(if $(TEST_FUZZ),-fsanitize=fuzzer-no-link \
+ -fno-experimental-new-pass-manager -DTEST_FUZZ=$(EMPTY))
CFLAGS_COVERAGE=$(if $(TEST_COVERAGE),-fprofile-arcs -ftest-coverage \
-DTEST_COVERAGE=$(EMPTY),)
CFLAGS_DEFINE=-DOUTDIR=$(out)/$(BLD) -DCHIP=$(CHIP) -DBOARD_TASKFILE=$(_tsk_lst_file) \