From ba75de4b797bf08fb3ae15631996349fe0e6e9da Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Tue, 19 Jul 2016 09:36:02 -0700 Subject: [PATCH] skip gcc-specific flag -fno-canonical-system-headers Summary: clang crashes with this flag. Reviewed By: martinoluca Differential Revision: D3586288 fbshipit-source-id: 51db3e0 --- infer/lib/clang_wrappers/filter_args_and_run_fcp_clang.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infer/lib/clang_wrappers/filter_args_and_run_fcp_clang.sh b/infer/lib/clang_wrappers/filter_args_and_run_fcp_clang.sh index 43c9c6772..c98e292e0 100755 --- a/infer/lib/clang_wrappers/filter_args_and_run_fcp_clang.sh +++ b/infer/lib/clang_wrappers/filter_args_and_run_fcp_clang.sh @@ -23,7 +23,8 @@ COMMAND=("${CLANG_COMPILER}${XX}") PREV="" for X in "$@" do - if [ "$X" == "-fembed-bitcode-marker" ]; then + if [ "$X" == "-fembed-bitcode-marker" \ + -o "$X" == "-fno-canonical-system-headers" ]; then continue elif [ "$X" == "armv7k" ] && [ "$PREV" == "-arch" ]; then # replace armv7k arch with armv7