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>
This commit is contained in:
Manoj Gupta 2019-07-03 15:00:34 -07:00 committed by Manoj Gupta
parent 36e4e9bb2e
commit 50c3f64b55
1 changed files with 2 additions and 1 deletions

View File

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