dev-lang/rust: provide more neutral default-linker

... otherwise CC at the time of building dev-lang/rust is baked in,
which is problematic if e.g. CC=clang-19 is used and then it gets
depcleaned later (as reported on the gentoo-user ML).

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-03-20 10:51:35 +00:00
parent 10b993103c
commit f65ef3fddd
19 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ src_configure() {
debuginfo-level-tests = 0
backtrace = true
incremental = false
default-linker = "$(tc-getCC)"
default-linker = "${CHOST}-cc"
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
description = "gentoo"
+1 -1
View File
@@ -399,7 +399,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -365,7 +365,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -364,7 +364,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -363,7 +363,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -362,7 +362,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -362,7 +362,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -361,7 +361,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -365,7 +365,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -373,7 +373,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -373,7 +373,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -374,7 +374,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -374,7 +374,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
parallel-compiler = $(toml_usex parallel-compiler)
channel = "$(usex nightly nightly stable)"
+1 -1
View File
@@ -462,7 +462,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
channel = "${build_channel}"
description = "gentoo"
+1 -1
View File
@@ -461,7 +461,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
channel = "${build_channel}"
description = "gentoo"
+1 -1
View File
@@ -462,7 +462,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
channel = "${build_channel}"
description = "gentoo"
@@ -469,7 +469,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
channel = "${build_channel}"
description = "gentoo"
@@ -469,7 +469,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
channel = "${build_channel}"
description = "gentoo"
+1 -1
View File
@@ -462,7 +462,7 @@ src_configure() {
backtrace = true
incremental = false
$(if ! tc-is-cross-compiler; then
echo "default-linker = \"$(tc-getCC)\""
echo "default-linker = \"${CHOST}-cc\""
fi)
channel = "${build_channel}"
description = "gentoo"