Skip to content

Commit

Permalink
Use contains in tests because the triple does not start with arch
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaith committed Oct 8, 2024
1 parent b78e28b commit 59eae7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/plc_driver/src/pipelines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,11 +637,11 @@ impl GeneratedProject {
let target = self.target.get_target_triple().to_string();
//Only do this on linux systems
if target.contains("linux") {
if target.starts_with("x86_64") {
if target.contains("x86_64") {
let content = include_str!("../../../scripts/linker/x86_64.script");
writeln!(file, "{content}")?;
linker.set_linker_script(file.get_location_str().to_string());
} else if target.starts_with("aarch64") {
} else if target.contains("aarch64") {
let content = include_str!("../../../scripts/linker/aarch64.script");
writeln!(file, "{content}")?;
linker.set_linker_script(file.get_location_str().to_string());
Expand Down

0 comments on commit 59eae7c

Please sign in to comment.