Skip to content

Commit

Permalink
Run the glibc run-make test in opt-dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Jan 22, 2025
1 parent 75f8cc6 commit 7877883
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ pub fn llvm_has_libzstd(config: &Config) -> bool {
let stderr = String::from_utf8(output.stderr).ok()?;
let zstd_available = !stderr.contains("LLVM was not built with LLVM_ENABLE_ZSTD");

// We don't partiCOMPILETEST_ENABLE_OPT_DIST_TESTScularly need to clean the link up (so the previous commands could fail
// We don't particularly need to clean the link up (so the previous commands could fail
// in theory but won't in practice), but we can try.
std::fs::remove_file(lld_symlink_path).ok()?;

Expand Down
1 change: 1 addition & 0 deletions src/tools/opt-dist/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ llvm-config = "{llvm_config}"
"tests/incremental",
"tests/mir-opt",
"tests/pretty",
"tests/run-make/glibc-symbols-x86_64-unknown-linux-gnu",
"tests/ui",
"tests/crashes",
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fn get_glibc_symbols(file: &Path) -> Vec<GlibcSymbol> {

// Uses llvm-objdump, because implementing this using the `object` crate is quite complicated.
llvm_objdump()
.arg("-T")
.arg("--dynamic-syms")
.arg(file)
.run()
.stdout_utf8()
Expand Down

0 comments on commit 7877883

Please sign in to comment.