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=""
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

Loading…
Cancel
Save