File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 33set -e
44set -x
55
6- echo " *** Cloning ld64 repository ..."
7- [ -d ld64 ] && rm -rf ld64
8- git clone https://github.com/ProcursusTeam/ld64.git
6+ if [ $( uname -s) != " Darwin" ]; then
7+ echo " *** Cloning ld64 repository ..."
8+ [ -d ld64 ] && rm -rf ld64
9+ git clone https://github.com/ProcursusTeam/ld64.git
910
10- echo " *** Checking the non-darwin headers ..."
11- if [ ! -d ./ld64/EXTERNAL_HEADERS/non-darwin ]; then
12- echo " The non-darwin headers are not present in the ld64 repository."
11+ echo " *** Checking the non-darwin headers ..."
12+ if [ ! -d ./ld64/EXTERNAL_HEADERS/non-darwin ]; then
13+ echo " The non-darwin headers are not present in the ld64 repository."
14+ fi
15+
16+ EXTRA_HEADER_FLAG=" -I./ld64/EXTERNAL_HEADERS/non-darwin"
1317fi
1418
1519echo " *** Building the symredirect-host executable ..."
16- clang++ -v -std=c++11 -I./ld64/EXTERNAL_HEADERS/non-darwin -DVROOT_API_ALL -o symredirect-host symredirect.cpp
20+ clang++ -v -std=c++11 $EXTRA_HEADER_FLAG -o symredirect-host symredirect.cpp
1721
1822echo " *** Checking built symredirect-host executable ..."
1923
You can’t perform that action at this time.
0 commit comments