Xcodeproj fixes (#411)

This commit is contained in:
Andrew Hyatt 2018-08-04 13:21:58 -04:00
parent 65e41d8b4c
commit 495662aac1
No known key found for this signature in database
GPG Key ID: 5456D0F696719C24
3 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1 @@
../../../../../../../../src/libstdcxx/include/c++

View File

@ -0,0 +1 @@
../../../../../../../../src/external/WTF/include/wtf

View File

@ -4,4 +4,29 @@ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/ga
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
clang -B $SCRIPTDIR -target darwin "$@"
foo="not"
extra=()
array=( "$@" )
for i in "${array[@]}"
do
if [ "$i" = "-x" ] && [ "$foo" != "found" ]
then
foo="found"
continue
fi
if [ "$i" = "c++" ] || [ "$i" = "objective-c++" ]
then
if [ "$foo" == "found" ]
then
extra+=( -I$SCRIPTDIR/../include/c++/v1 )
found="not"
fi
fi
done
extra+=( -I$SCRIPTDIR/../include )
clang -B $SCRIPTDIR -target darwin ${extra[@]} "$@"