mirror of
https://github.com/ziglang/zig.git
synced 2025-12-17 11:43:16 +00:00
from #llvm IRC: <andrewrk> does llvm 7 as a .so have some kind of new initialization requirement? I'm getting a segfault in llvm::DIBuilder::createFile (with valid non-null parameters), when linking my frontend against llvm-7.so but not when linking against llvm .a libraries <d0k> we have an ABI bug in LLVM 7 when the .so is built with gcc but your program is build with clang. I'm sorry for that.
24 lines
847 B
Bash
Executable File
24 lines
847 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -x
|
|
set -e
|
|
|
|
export CC=gcc-7
|
|
export CXX=g++-7
|
|
echo $PATH
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release
|
|
make -j2 install
|
|
./zig build --build-file ../build.zig test -Dskip-release-small
|
|
|
|
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
|
mkdir $TRAVIS_BUILD_DIR/artifacts
|
|
docker run -it --mount type=bind,source="$TRAVIS_BUILD_DIR/artifacts",target=/z ziglang/static-base:llvm7-1 -j2 $TRAVIS_COMMIT
|
|
echo "access_key = $AWS_ACCESS_KEY_ID" >> ~/.s3cfg
|
|
echo "secret_key = $AWS_SECRET_ACCESS_KEY" >> ~/.s3cfg
|
|
s3cmd put -P $TRAVIS_BUILD_DIR/artifacts/* s3://ziglang.org/builds/
|
|
touch empty
|
|
s3cmd put -P empty s3://ziglang.org/builds/zig-linux-x86_64-$TRAVIS_BRANCH.tar.xz --add-header="Cache-Control: max-age=0, must-revalidate" --add-header=x-amz-website-redirect-location:/builds/$(ls $TRAVIS_BUILD_DIR/artifacts)
|
|
fi
|