File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 32
32
%endif
33
33
%endif
34
34
35
+ # The prjconf can override the "enabled by default" by setting
36
+ # rust_disable_armv7 to 1
37
+ %define build_armv7 %{?rust_disable_armv7:0 }%{!?rust_disable_armv7:1 }
38
+ %define build_aarch64 %{?rust_disable_aarch64:0 }%{!?rust_disable_aarch64:1 }
39
+
40
+ %if 0%{?build_armv7 }
35
41
%global rust_arm_triple armv7-unknown-linux-gnueabihf
42
+ %define rust_arm_triple_comma ,%{rust_arm_triple }
43
+ %else
44
+ %define rust_arm_triple_comma ""
45
+ %endif
46
+ %if 0%{?build_aarch64 }
36
47
%global rust_aarch64_triple aarch64 -unknown-linux-gnu
48
+ %define rust_aarch64_triple_comma ,%{rust_aarch64_triple }
49
+ %else
50
+ %define rust_aarch64_triple_comma ""
51
+ %endif
37
52
%global rust_x86_triple i686-unknown-linux-gnu
38
53
39
- %define build_armv7 1
40
- %define build_aarch64 1
41
-
42
54
%global python python3
43
55
44
56
# LLDB isn't available everywhere...
@@ -296,11 +308,7 @@ PATH=/opt/cross/bin/:$PATH
296
308
--disable-option-checking \
297
309
--libdir= %{common_libdir } \
298
310
--build= %{rust_x86_triple } --host= %{rust_x86_triple }\
299
- %if 0%{?build_aarch64 }
300
- --target= %{rust_x86_triple },%{rust_arm_triple }\,%{rust_aarch64_triple }\
301
- %else
302
- --target= %{rust_x86_triple },%{rust_arm_triple }\
303
- %endif
311
+ --target= %{rust_x86_triple }%{rust_arm_triple_comma }%{rust_aarch64_triple_comma }\
304
312
--python= %{python } \
305
313
--local -rust-root= %{local_rust_root } \
306
314
--enable-local -rebuild \
You can’t perform that action at this time.
0 commit comments