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
master
Jules Villard 9 years ago committed by Facebook Github Bot 5
parent b9c9f20892
commit cb2d8dbe83

@ -16,14 +16,8 @@ COMMAND=("${CLANG_COMPILER}${XX}")
PREV="" PREV=""
for X in "$@" for X in "$@"
do do
if [ "$X" == "-fapplication-extension" ] \ if [ "$X" == "-fembed-bitcode-marker" ]; then
|| [ "$X" == "-fembed-bitcode-marker" ] \
|| [[ "$X" =~ "-mwatchos-version-min" ]]; then
continue 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 elif [ "$X" == "armv7k" ] && [ "$PREV" == "-arch" ]; then
# replace armv7k arch with armv7 # replace armv7k arch with armv7
COMMAND+=("armv7") COMMAND+=("armv7")

Loading…
Cancel
Save