skip gcc-specific flag -fno-canonical-system-headers

Summary: clang crashes with this flag.

Reviewed By: martinoluca

Differential Revision: D3586288

fbshipit-source-id: 51db3e0
master
Jules Villard 8 years ago committed by Facebook Github Bot
parent f0fffd3c59
commit ba75de4b79

@ -23,7 +23,8 @@ COMMAND=("${CLANG_COMPILER}${XX}")
PREV="" PREV=""
for X in "$@" for X in "$@"
do do
if [ "$X" == "-fembed-bitcode-marker" ]; then if [ "$X" == "-fembed-bitcode-marker" \
-o "$X" == "-fno-canonical-system-headers" ]; then
continue continue
elif [ "$X" == "armv7k" ] && [ "$PREV" == "-arch" ]; then elif [ "$X" == "armv7k" ] && [ "$PREV" == "-arch" ]; then
# replace armv7k arch with armv7 # replace armv7k arch with armv7

Loading…
Cancel
Save