Skip to content

Commit

Permalink
Try out setting _POSIX_PTHREAD_SEMANTICS for Solaris and use patched …
Browse files Browse the repository at this point in the history
…libgit2
  • Loading branch information
Bobo1239 committed Mar 29, 2018
1 parent 7989ebe commit 6b5266b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ci/script.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ EOF
git clone --depth 1 https://github.com/rust-lang/cargo $td

pushd $td
cross build --target $TARGET
echo "[patch.crates-io]" >> Cargo.toml
echo "git2 = {git = \"https://github.com/bobo1239/git2-rs\"}" >> Cargo.toml
echo "libgit2-sys = {git = \"https://github.com/bobo1239/git2-rs\"}" >> Cargo.toml

echo "[build.env]" >> Cross.toml
echo "passthrough = [\"CFLAGS\"]" >> Cross.toml

CFLAGS="-D_POSIX_PTHREAD_SEMANTICS" cross build --target $TARGET

This comment has been minimized.

Copy link
@bgermann

bgermann Mar 30, 2018

You should wait for rust-lang/cmake-rs@316dca50e0a4 to become available. libgit2 sets _POSIX_PTHREAD_SEMANTICS if the system name is set correctly.

popd

rm -rf $td
Expand Down

0 comments on commit 6b5266b

Please sign in to comment.