Эх сурвалжийг харах

tell cargo which linker to use

Jorge Aparicio 8 жил өмнө
parent
commit
170a977587
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      ci/env.sh

+ 2 - 0
ci/env.sh

@@ -40,6 +40,8 @@ if [[ $TARGET != $HOST && ! $TARGET =~ ^i.86- ]]; then
             ;;
     esac
 
+    export CARGO_TARGET_$(echo $TARGET | tr a-z- A-Z_)_LINKER=$GCC_TRIPLE-gcc
+
     if [[ $RUN_TESTS == y ]]; then
         # NOTE(export) so this can reach the processes that `cargo test` spawns
         export QEMU_LD_PREFIX=/usr/$GCC_TRIPLE