diff options
Diffstat (limited to 'ci/run.sh')
-rwxr-xr-x | ci/run.sh | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -27,6 +27,17 @@ configure_cargo() { cp "${BASE_DIR}/ci/cargo-config" .cargo/config } +# +# We need to export CC for the tests to build properly (some C code is +# compiled) to work. We already tell Cargo about the compiler in the +# cargo config, so we just parse that info out of the cargo config +# +cc_for_target() { + awk "/\[target\.${TARGET}\]/{getline; print}" .cargo/config | + cut -d '=' -f2 | \ + tr -d '"' | tr -d ' ' +} + cross_compile_tests() { case "$TARGET" in *-apple-ios) @@ -99,6 +110,8 @@ test_binary() { configure_cargo +export CC="$(cc_for_target)" + # select the proper version multirust override ${VERSION} |