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 221-226
src_configure() {
Link Here
|
221 |
linker = "rust-lld" |
226 |
linker = "rust-lld" |
222 |
EOF |
227 |
EOF |
223 |
fi |
228 |
fi |
|
|
229 |
|
230 |
if use thumbv7neon; then |
231 |
cat <<- EOF >> "${S}"/config.toml |
232 |
[target.thumbv7neon-unknown-linux-gnueabihf] |
233 |
cc = "$(tc-getBUILD_CC)" |
234 |
cxx = "$(tc-getBUILD_CXX)" |
235 |
linker = "$(tc-getCC)" |
236 |
ar = "$(tc-getAR)" |
237 |
EOF |
238 |
fi |
224 |
} |
239 |
} |
225 |
|
240 |
|
226 |
src_compile() { |
241 |
src_compile() { |
227 |
-- |
|
|
228 |
profiles/arch/base/package.use.mask | 4 ++++ |
242 |
profiles/arch/base/package.use.mask | 4 ++++ |
229 |
1 file changed, 4 insertions(+) |
243 |
1 file changed, 4 insertions(+) |