Lines 36-42
LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?}
Link Here
|
36 |
|
36 |
|
37 |
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
37 |
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
38 |
|
38 |
|
39 |
IUSE="clippy cpu_flags_x86_sse2 debug doc libressl rls rustfmt system-llvm wasm ${ALL_LLVM_TARGETS[*]}" |
39 |
IUSE="clippy cpu_flags_x86_sse2 debug doc libressl rls rustfmt system-llvm thumbv7neon wasm ${ALL_LLVM_TARGETS[*]}" |
40 |
|
40 |
|
41 |
# Please keep the LLVM dependency block separate. Since LLVM is slotted, |
41 |
# Please keep the LLVM dependency block separate. Since LLVM is slotted, |
42 |
# we need to *really* make sure we're not pulling one than more slot |
42 |
# we need to *really* make sure we're not pulling one than more slot |
Lines 140-145
src_configure() {
Link Here
|
140 |
if use wasm; then |
140 |
if use wasm; then |
141 |
rust_targets="${rust_targets},\"wasm32-unknown-unknown\"" |
141 |
rust_targets="${rust_targets},\"wasm32-unknown-unknown\"" |
142 |
fi |
142 |
fi |
|
|
143 |
|
144 |
if use thumbv7neon; then |
145 |
rust_targets="${rust_targets},\"thumbv7neon-unknown-linux-gnueabihf\"" |
146 |
fi |
147 |
|
143 |
rust_targets="${rust_targets#,}" |
148 |
rust_targets="${rust_targets#,}" |
144 |
|
149 |
|
145 |
local extended="true" tools="\"cargo\"," |
150 |
local extended="true" tools="\"cargo\"," |
Lines 222-227
src_configure() {
Link Here
|
222 |
linker = "$(usex system-llvm lld rust-lld)" |
227 |
linker = "$(usex system-llvm lld rust-lld)" |
223 |
EOF |
228 |
EOF |
224 |
fi |
229 |
fi |
|
|
230 |
|
231 |
if use thumbv7neon; then |
232 |
cat <<- EOF >> "${S}"/config.toml |
233 |
[target.thumbv7neon-unknown-linux-gnueabihf] |
234 |
cc = "$(tc-getBUILD_CC)" |
235 |
cxx = "$(tc-getBUILD_CXX)" |
236 |
linker = "$(tc-getCC)" |
237 |
ar = "$(tc-getAR)" |
238 |
EOF |
239 |
fi |
225 |
} |
240 |
} |
226 |
|
241 |
|
227 |
src_compile() { |
242 |
src_compile() { |
228 |
-- |
|
|
229 |
dev-lang/rust/metadata.xml | 1 + |
243 |
dev-lang/rust/metadata.xml | 1 + |
230 |
1 file changed, 1 insertion(+) |
244 |
1 file changed, 1 insertion(+) |