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

Collapse All | Expand All

(-)a/dev-lang/rust/rust-1.45.0.ebuild (+14 lines)
Lines 211-216 src_configure() { Link Here
211
	fi
211
	fi
212
212
213
	rust_target="$(rust_abi)"
213
	rust_target="$(rust_abi)"
214
	llvm_libunwind="false"
215
	if tc-is-clang; then
216
		local compiler_rt=$($(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -print-libgcc-file-name)
217
		if [[ ${compiler_rt} == *libclang_rt* ]]; then
218
			if has_version sys-libs/llvm-libunwind; then
219
				einfo "Linking with llvm-libunwind"
220
				llvm_libunwind=true
221
			else
222
				einfo "Linking with gcc_s unwinder"
223
				llvm_libunwind=false
224
			fi
225
		fi
226
	fi
214
227
215
	cat <<- EOF > "${S}"/config.toml
228
	cat <<- EOF > "${S}"/config.toml
216
		[llvm]
229
		[llvm]
Lines 263-268 src_configure() { Link Here
263
		lld = $(usex system-llvm false $(toml_usex wasm))
276
		lld = $(usex system-llvm false $(toml_usex wasm))
264
		backtrace-on-ice = true
277
		backtrace-on-ice = true
265
		jemalloc = false
278
		jemalloc = false
279
		llvm-libunwind = ${llvm_libunwind}
266
		[dist]
280
		[dist]
267
		src-tarball = false
281
		src-tarball = false
268
	EOF
282
	EOF

Return to bug 733242