mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 19:32:17 +00:00
Fix a couple of preprocessed host bugs
This commit is contained in:
parent
d9f3e11634
commit
c0b065b51a
2 changed files with 13 additions and 22 deletions
|
@ -134,7 +134,7 @@ pub const fn preprocessed_host_filename(target: &Triple) -> Option<&'static str>
|
|||
|
||||
/// Same format as the precompiled host filename, except with a file extension like ".o" or ".obj"
|
||||
pub fn legacy_host_filename(target: &Triple, opt_level: OptLevel) -> Option<String> {
|
||||
let os = roc_target::OperatingSystem::new(target.operating_system)?;
|
||||
let os = roc_target::OperatingSystem::from(target.operating_system);
|
||||
let ext = legacy_host_filename_ext(os, opt_level);
|
||||
|
||||
Some(preprocessed_host_filename(target)?.replace(PRECOMPILED_HOST_EXT, ext))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue