Skip to content

Commit

Permalink
Unrolled build for rust-lang#132225
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#132225 - clubby789:run-make-dynamic, r=jieyouxu

Dynamically link run-make support

Fixes rust-lang#131810

r? `@jieyouxu`
  • Loading branch information
rust-timer authored Oct 28, 2024
2 parents 6929a48 + 9bb6e07 commit 8eed508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/compiletest/src/runtest/run_make.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ impl TestCx<'_> {
.arg(format!("run_make_support={}", &support_lib_path.to_string_lossy()))
.arg("--edition=2021")
.arg(&self.testpaths.file.join("rmake.rs"))
.arg("-Cprefer-dynamic")
// Provide necessary library search paths for rustc.
.env(dylib_env_var(), &env::join_paths(host_dylib_search_paths).unwrap());

Expand Down
3 changes: 3 additions & 0 deletions src/tools/run-make-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ gimli = "0.31.0"
build_helper = { path = "../build_helper" }
serde_json = "1.0"
libc = "0.2"

[lib]
crate-type = ["lib", "dylib"]

0 comments on commit 8eed508

Please sign in to comment.