From cb2d8dbe83e41f1fe3059058257a3c1751bf9951 Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Fri, 22 Apr 2016 10:10:56 -0700 Subject: [PATCH] update clang command-line flags that we filter out Summary:Open-source clang has caught up a bit with apple's clang, so we don't need to filter as many compilation flags as we used to. Reviewed By: akotulski, martinoluca Differential Revision: D3212553 fb-gh-sync-id: 5638dc8 fbshipit-source-id: 5638dc8 --- infer/lib/clang_wrappers/clang_wrapper | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/infer/lib/clang_wrappers/clang_wrapper b/infer/lib/clang_wrappers/clang_wrapper index 33a03ae74..d4a281bd6 100755 --- a/infer/lib/clang_wrappers/clang_wrapper +++ b/infer/lib/clang_wrappers/clang_wrapper @@ -16,14 +16,8 @@ COMMAND=("${CLANG_COMPILER}${XX}") PREV="" for X in "$@" do - if [ "$X" == "-fapplication-extension" ] \ - || [ "$X" == "-fembed-bitcode-marker" ] \ - || [[ "$X" =~ "-mwatchos-version-min" ]]; then + if [ "$X" == "-fembed-bitcode-marker" ]; then continue - elif [ "$X" == "-gmodules" ]; then - # gmodules is an alias for "-g -fmodule-format=obj -dwarf-ext-refs" - # but "-fmodule-format" is not available, so skip it for now. - COMMAND+=("-g" "-dwarf-ext-refs") elif [ "$X" == "armv7k" ] && [ "$PREV" == "-arch" ]; then # replace armv7k arch with armv7 COMMAND+=("armv7")