Skip to content

Commit ce74e0b

Browse files
authored
chore: Fix TRIPLE env value used in external tests (#2082)
When trying cross tests for powerpc64le, I noticed that a mold test marked for skipping would fail with an error indicating that `ppc64le-linux-gnu-gcc` could not be found. This occurs because the `TRIPLE` environment variable is being constructed using `format!("{}-linux-gnu", arch)`, which incorrectly sets the GCC command.
1 parent 5ba6828 commit ce74e0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wild/tests/external_tests/mold_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn run_mold_test(mold_test: &Path) -> Result<Output> {
4444
&& let Ok(arch) = Architecture::from_str(arch_name)
4545
&& arch != get_host_architecture()
4646
{
47-
Some(format!("{}-linux-gnu", arch))
47+
Some(arch.cross_triplet())
4848
} else {
4949
None
5050
};

0 commit comments

Comments
 (0)