fix travis crossbuild

This commit is contained in:
rabite 2019-05-21 22:10:08 +02:00
parent ade3b7f08f
commit 96b7363fef
2 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,7 @@ install:
- command -v cross || cargo install cross
script:
- cross build --target $TARGET ${TRAVIS_TAG:+"--release"}
- PKG_CONFIG_ALLOW_CROSS=1 cross build --target $TARGET ${TRAVIS_TAG:+"--release"}
before_deploy:
- name="hunter-$TRAVIS_BRANCH-$ARCH"

4
Cross.toml Normal file
View File

@ -0,0 +1,4 @@
[build.env]
passthrough = [
"PKG_CONFIG_ALLOW_CROSS",
]