소스 검색

hide the thumbv* target files

due to how Cargo works, the rustc-cfg in build.rs was picking our target
specifications rather than the one the user meant to use. Placing our
target files in any place other than the root of the Cargo project
avoids the issue.
Jorge Aparicio 8 년 전
부모
커밋
0827f8c7f1
5개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      ci/run.sh
  2. 0 0
      targets/thumbv6m-none-eabi.json
  3. 0 0
      targets/thumbv7em-none-eabi.json
  4. 0 0
      targets/thumbv7em-none-eabihf.json
  5. 0 0
      targets/thumbv7m-none-eabi.json

+ 2 - 0
ci/run.sh

@@ -3,6 +3,8 @@ set -e
 # Test our implementation
 case $1 in
     thumb*)
+        export RUST_TARGET_PATH=/checkout/targets
+
         xargo build --target $1
         xargo build --target $1 --release
         ;;

+ 0 - 0
thumbv6m-none-eabi.json → targets/thumbv6m-none-eabi.json


+ 0 - 0
thumbv7em-none-eabi.json → targets/thumbv7em-none-eabi.json


+ 0 - 0
thumbv7em-none-eabihf.json → targets/thumbv7em-none-eabihf.json


+ 0 - 0
thumbv7m-none-eabi.json → targets/thumbv7m-none-eabi.json