File tree 3 files changed +24
-3
lines changed
3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ eval 'export CARGO_TARGET_${target_triple_upper}_RUSTFLAGS="$CARGO_TARGET_'${tar
27
27
# Build libs
28
28
if [[ " $1 " == " --release" ]]; then
29
29
sysroot_channel=' release'
30
- cargo build --target $TARGET_TRIPLE --release --verbose
30
+ cargo build --target $TARGET_SPEC --release --verbose
31
31
else
32
32
sysroot_channel=' debug'
33
- cargo build --target $TARGET_TRIPLE --features compiler_builtins/c
33
+ cargo build --target $TARGET_SPEC --features compiler_builtins/c
34
34
fi
35
35
36
36
# Copy files to sysroot
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ if [[ "$HOST_TRIPLE" != "$TARGET_TRIPLE" ]]; then
32
32
TARGET_TRIPLE=" mips-unknown-linux-gnu"
33
33
linker=' -Clinker=m68k-linux-gcc'
34
34
elif [[ " $TARGET_TRIPLE " == " rx-elf" ]]; then
35
- TARGET_TRIPLE=" mips-unknown-linux-gnu"
35
+ TARGET_TRIPLE=" rx-none-elf"
36
+ TARGET_SPEC=" $( pwd) /rx-none-elf.json"
36
37
linker=' -Clinker=rx-elf-gcc'
37
38
export CC_${TARGET_TRIPLE// -/ _} =" rx-elf-gcc"
38
39
elif [[ " $TARGET_TRIPLE " == " aarch64-unknown-linux-gnu" ]]; then
@@ -44,6 +45,11 @@ if [[ "$HOST_TRIPLE" != "$TARGET_TRIPLE" ]]; then
44
45
fi
45
46
fi
46
47
48
+ if [ -z " $TARGET_SPEC " ]; then
49
+ TARGET_SPEC=" $TARGET_TRIPLE "
50
+ fi
51
+ export TARGET_SPEC
52
+
47
53
target_triple_upper=" $( echo " $TARGET_TRIPLE " | tr ' [:lower:]-' ' [:upper:]_' ) "
48
54
49
55
codegen_dylib=" $( pwd) /target/${CHANNEL:- debug} /librustc_codegen_gcc.$dylib_ext "
Original file line number Diff line number Diff line change
1
+ {
2
+ "arch" : " mips" ,
3
+ "abi" : " actually_rx" ,
4
+ "data-layout" : " e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64" ,
5
+ "emit-debug-gdb-scripts" : false ,
6
+ "executables" : true ,
7
+ "frame-pointer" : " always" ,
8
+ "linker" : " rx-elf-gcc" ,
9
+ "linker-flavor" : " gcc" ,
10
+ "llvm-target" : " thumbv7m-none-eabi" ,
11
+ "max-atomic-width" : 32 ,
12
+ "panic-strategy" : " abort" ,
13
+ "relocation-model" : " static" ,
14
+ "target-pointer-width" : " 32"
15
+ }
You can’t perform that action at this time.
0 commit comments