Skip to content

Commit f506a1f

Browse files
committed
try hooking up a different env
1 parent 3c8135d commit f506a1f

File tree

2 files changed

+1
-3
lines changed
  • compiler/rustc_codegen_ssa/src/back
  • src/ci/docker/host-x86_64/dist-x86_64-linux

2 files changed

+1
-3
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3415,7 +3415,7 @@ fn add_wild_args(
34153415
self_contained_components: LinkSelfContainedComponents,
34163416
) {
34173417
// Either Wild or LLD to make it work with CI
3418-
if flavor != LinkerFlavor::Wild || std::env::var_os("BUILDING_RUSTC").is_some() {
3418+
if flavor != LinkerFlavor::Wild || std::env::var_os("CI_JOB_NAME").is_some() {
34193419
let self_contained_cli = sess.opts.cg.link_self_contained.is_linker_enabled();
34203420
let self_contained_target = self_contained_components.is_linker_enabled();
34213421

src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ ENV LIBCURL_NO_PKG_CONFIG 1
112112

113113
ENV DIST_REQUIRE_ALL_TOOLS 1
114114

115-
ENV BUILDING_RUSTC 1
116-
117115
# FIXME: Without this, LLVMgold.so incorrectly resolves to the system
118116
# libstdc++, instead of the one we build.
119117
ENV LD_PRELOAD=/rustroot/lib64/libstdc++.so.6

0 commit comments

Comments
 (0)