mirror of
https://github.com/ziglang/zig.git
synced 2025-12-13 09:43:09 +00:00
33 lines
976 B
Bash
Executable File
33 lines
976 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -x
|
|
set -e
|
|
|
|
export CC=clang-6.0
|
|
export CXX=clang++-6.0
|
|
echo $PATH
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)
|
|
make VERBOSE=1
|
|
make install
|
|
./zig build --build-file ../build.zig test
|
|
|
|
./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc
|
|
wine zig-cache/test.exe
|
|
|
|
./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc --release-fast
|
|
wine zig-cache/test.exe
|
|
|
|
./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc --release-safe
|
|
wine zig-cache/test.exe
|
|
|
|
./zig test ../test/behavior.zig --target-os windows --target-arch x86_64 --target-environ msvc
|
|
wine64 zig-cache/test.exe
|
|
|
|
#./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
|