summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-05-21 22:10:08 +0200
committerrabite <rabite@posteo.de>2019-05-21 22:47:00 +0200
commit96b7363fef9c7f18198be86fc36025a9f718202d (patch)
tree427ba3d19cebc22a7c6bb40feab2a0944b0deb8d
parentade3b7f08feb5894f780f006fefd53d073ad7b33 (diff)
fix travis crossbuild
-rw-r--r--.travis.yml2
-rw-r--r--Cross.toml4
2 files changed, 5 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 2e46a0a..a3a5210 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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"
diff --git a/Cross.toml b/Cross.toml
new file mode 100644
index 0000000..7f13b57
--- /dev/null
+++ b/Cross.toml
@@ -0,0 +1,4 @@
+[build.env]
+passthrough = [
+ "PKG_CONFIG_ALLOW_CROSS",
+] \ No newline at end of file