Commit 773d1ea
authored
tc-rust.mk: Fix Rust target detection by moving checks to runtime (#6919)
Rust toolchain and target availability were previously evaluated using
Makefile conditionals (ifeq), which are resolved at parse time and do not
reflect runtime changes made by rustup commands.
This caused incorrect behavior for non-standard Rust toolchains (e.g. qoriq),
where the default rustup toolchain does not support the requested target
(powerpc-unknown-linux-gnuspe), yet the Make logic still attempted to add it.
The logic has been corrected by performing rustup toolchain and target
availability checks at runtime in the shell, ensuring that targets are only
added when supported by the selected Rust toolchain and avoiding invalid
rustup invocations.1 parent 9c51979 commit 773d1ea
1 file changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
| |||
133 | 140 | | |
134 | 141 | | |
135 | 142 | | |
136 | | - | |
137 | 143 | | |
138 | 144 | | |
139 | 145 | | |
| |||
0 commit comments