mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Fix linux surgical linker tests
This commit is contained in:
parent
674d449bc1
commit
87ad2cdf82
1 changed files with 4 additions and 2 deletions
|
@ -1576,7 +1576,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn zig_host_app_help(dir: &Path) {
|
||||
fn zig_host_app_help(dir: &Path, target: &Triple) {
|
||||
let host_zig = indoc!(
|
||||
r#"
|
||||
const std = @import("std");
|
||||
|
@ -1696,10 +1696,12 @@ mod tests {
|
|||
#[cfg(target_os = "linux")]
|
||||
#[test]
|
||||
fn zig_host_app() {
|
||||
use std::str::FromStr;
|
||||
|
||||
let dir = tempfile::tempdir().unwrap();
|
||||
let dir = dir.path();
|
||||
|
||||
zig_host_app_help(dir);
|
||||
zig_host_app_help(dir, &Triple::from_str("x86_64-unknown-linux-musl").unwrap());
|
||||
|
||||
let output = std::process::Command::new(&dir.join("final"))
|
||||
.current_dir(dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue