2017-08-26 22:07:06 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-08-26 22:25:34 -07:00
|
|
|
set -x
|
2017-10-01 08:50:53 -07:00
|
|
|
set -e
|
2017-08-26 22:25:34 -07:00
|
|
|
|
2017-08-26 22:07:06 -07:00
|
|
|
export CC=clang-5.0
|
|
|
|
export CXX=clang++-5.0
|
|
|
|
echo $PATH
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2017-09-05 19:55:56 -07:00
|
|
|
cmake .. -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))
|
2017-08-26 22:07:06 -07:00
|
|
|
make VERBOSE=1
|
|
|
|
make install
|
2017-09-05 19:55:56 -07:00
|
|
|
./zig build --build-file ../build.zig test
|
2017-10-01 08:11:38 -07:00
|
|
|
|
2017-10-01 08:27:42 -07:00
|
|
|
./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc
|
2017-11-07 06:06:29 -08:00
|
|
|
wine zig-cache/test.exe
|
2017-10-01 08:11:38 -07:00
|
|
|
|
2017-10-01 08:27:42 -07:00
|
|
|
./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc --release-fast
|
2017-11-07 06:06:29 -08:00
|
|
|
wine zig-cache/test.exe
|
2017-10-01 08:11:38 -07:00
|
|
|
|
2017-10-01 08:27:42 -07:00
|
|
|
./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc --release-safe
|
2017-11-07 06:06:29 -08:00
|
|
|
wine zig-cache/test.exe
|
2017-10-02 06:55:18 -07:00
|
|
|
|
|
|
|
./zig test ../test/behavior.zig --target-os windows --target-arch x86_64 --target-environ msvc
|
2017-11-07 06:06:29 -08:00
|
|
|
wine64 zig-cache/test.exe
|
2017-10-02 06:55:18 -07:00
|
|
|
|
2017-10-02 07:48:20 -07:00
|
|
|
#./zig test ../test/behavior.zig --target-os windows --target-arch x86_64 --target-environ msvc --release-fast
|
|
|
|
#wine64 test.exe
|
|
|
|
#
|
|
|
|
#./zig test ../test/behavior.zig --target-os windows --target-arch x86_64 --target-environ msvc --release-safe
|
|
|
|
#wine64 test.exe
|