mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Pick correct version of architecture name
This commit is contained in:
parent
0c1491c182
commit
4d0363456a
1 changed files with 2 additions and 3 deletions
|
@ -150,10 +150,9 @@ fn link_linux(
|
|||
input_paths: &[&str],
|
||||
link_type: LinkType,
|
||||
) -> io::Result<(Child, PathBuf)> {
|
||||
let arch = arch_str(target);
|
||||
let usr_lib_path = Path::new("/usr/lib").to_path_buf();
|
||||
let usr_lib_gnu_path = usr_lib_path.join(format!("{}-linux-gnu", arch));
|
||||
let lib_gnu_path = Path::new("/lib/").join(format!("{}-linux-gnu", arch));
|
||||
let usr_lib_gnu_path = usr_lib_path.join(format!("{}-linux-gnu", target.architecture));
|
||||
let lib_gnu_path = Path::new("/lib/").join(format!("{}-linux-gnu", target.architecture));
|
||||
|
||||
let libcrt_path = if usr_lib_gnu_path.exists() {
|
||||
&usr_lib_gnu_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue