Merge pull request #7236 from roc-lang/fix-no-link

Restore `roc build --no-link` pipeline
This commit is contained in:
Sam Mohr 2024-11-21 01:26:37 -08:00 committed by GitHub
commit 6a3db1e59a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -872,7 +872,7 @@ fn build_loaded_file<'a>(
let built_host_opt =
// Not sure if this is correct for all calls with LinkType::Dylib...
if link_type == LinkType::Dylib || target == Target::Wasm32 {
if link_type == LinkType::None || link_type == LinkType::Dylib || target == Target::Wasm32 {
BuiltHostOpt::None
} else {
let prebuilt_host = determine_built_host_path(&platform_main_roc_path, target, build_host_requested, link_type, linking_strategy, suppress_build_host_warning);