Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 680652 | Differences between
and this patch

Collapse All | Expand All

(-)a/dev-lang/rust/rust-1.32.0.ebuild (-1 / +17 lines)
Lines 38-44 LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?} Link Here
38
38
39
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
39
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
40
40
41
IUSE="clippy cpu_flags_x86_sse2 debug doc libressl rls rustfmt system-llvm wasm ${ALL_LLVM_TARGETS[*]}"
41
IUSE="clippy cpu_flags_x86_sse2 debug doc libressl rls rustfmt rust-std-armv7 system-llvm wasm ${ALL_LLVM_TARGETS[*]}"
42
42
43
COMMON_DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
43
COMMON_DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
44
		sys-libs/zlib
44
		sys-libs/zlib
Lines 126-131 src_configure() { Link Here
126
	if use wasm; then
126
	if use wasm; then
127
		rust_targets="${rust_targets},\"wasm32-unknown-unknown\""
127
		rust_targets="${rust_targets},\"wasm32-unknown-unknown\""
128
	fi
128
	fi
129
130
	if use rust-std-armv7; then
131
		rust_targets="${rust_targets},\"armv7-unknown-linux-gnueabihf\""
132
	fi
129
	rust_targets="${rust_targets#,}"
133
	rust_targets="${rust_targets#,}"
130
134
131
	local extended="true" tools="\"cargo\","
135
	local extended="true" tools="\"cargo\","
Lines 207-212 src_configure() { Link Here
207
			linker = "rust-lld"
211
			linker = "rust-lld"
208
		EOF
212
		EOF
209
	fi
213
	fi
214
215
216
	if use rust-std-armv7; then
217
		cat <<- EOF >> "${S}"/config.toml
218
			[target.armv7-unknown-linux-gnueabihf]
219
			cc = "armv7a-unknown-linux-gnueabihf-gcc"
220
			cxx = "armv7a-unknown-linux-gnueabihf-g++"
221
			linker = "armv7a-unknown-linux-gnueabihf-gcc"
222
			ar = "armv7a-unknown-linux-gnueabihf-ar"
223
			llvm-config = "/usr/armv7a-unknown-linux-gnueabihf/usr/lib/llvm/7/bin/llvm-config"
224
		EOF
225
	fi
210
}
226
}
211
227
212
src_compile() {
228
src_compile() {

Return to bug 680652