travis: use external lld for apple

since the binary I uploaded to build against has the LLD fixes
This commit is contained in:
Andrew Kelley 2017-08-28 03:32:43 -04:00
parent 6c7e975b75
commit 7f9de4b945

View File

@ -9,7 +9,7 @@ export CXX=/usr/local/opt/gcc/bin/g++-7
echo $PATH echo $PATH
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_PREFIX_PATH=$PREFIX_DIR -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_LIB_DIR=$(dirname $($CC -print-file-name=crt1.o)) -DZIG_LIBC_INCLUDE_DIR=$(echo -n | $CC -E -x c - -v 2>&1 | grep -B1 "End of search list." | head -n1 | cut -c 2- | sed "s/ .*//") -DZIG_LIBC_STATIC_LIB_DIR=$(dirname $($CC -print-file-name=crtbegin.o)) cmake .. -DCMAKE_PREFIX_PATH=$PREFIX_DIR -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_LIB_DIR=$(dirname $($CC -print-file-name=crt1.o)) -DZIG_LIBC_INCLUDE_DIR=$(echo -n | $CC -E -x c - -v 2>&1 | grep -B1 "End of search list." | head -n1 | cut -c 2- | sed "s/ .*//") -DZIG_LIBC_STATIC_LIB_DIR=$(dirname $($CC -print-file-name=crtbegin.o)) -DZIG_FORCE_EXTERNAL_LLD=ON
make VERBOSE=1 make VERBOSE=1
make install make install
./zig build --build-file ../build.zig test ./zig build --build-file ../build.zig test