mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
fix 'Only 64bit little endian...' with prebuilt platform
This commit is contained in:
parent
7dfa469ea8
commit
a12d281707
1 changed files with 7 additions and 1 deletions
|
@ -873,7 +873,13 @@ fn build_loaded_file<'a>(
|
||||||
// The following 4 cases represent the possible valid host states for the compiler once
|
// The following 4 cases represent the possible valid host states for the compiler once
|
||||||
// host rebuilding has been removed.
|
// host rebuilding has been removed.
|
||||||
(Ok(host_path), _, false, _) => PrebuiltHost::Legacy(host_path),
|
(Ok(host_path), _, false, _) => PrebuiltHost::Legacy(host_path),
|
||||||
(_, Ok(artifacts), false, _) => PrebuiltHost::Surgical(artifacts),
|
(_, Ok(artifacts), false, _) => {
|
||||||
|
// Copy preprocessed host to executable location.
|
||||||
|
// The surgical linker will modify that copy in-place.
|
||||||
|
std::fs::copy(&artifacts.preprocessed_host, output_exe_path.as_path()).unwrap();
|
||||||
|
|
||||||
|
PrebuiltHost::Surgical(artifacts)
|
||||||
|
},
|
||||||
(Err(_), Err(_), false, LinkType::Dylib) => PrebuiltHost::None,
|
(Err(_), Err(_), false, LinkType::Dylib) => PrebuiltHost::None,
|
||||||
(Err(_), Err(_), false, LinkType::None) => PrebuiltHost::None,
|
(Err(_), Err(_), false, LinkType::None) => PrebuiltHost::None,
|
||||||
(Err(legacy_paths), Err(surgical_paths), false, LinkType::Executable) => {
|
(Err(legacy_paths), Err(surgical_paths), false, LinkType::Executable) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue