mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Avoid an unused variable warning
This commit is contained in:
parent
9c1291d57d
commit
6b446fe592
1 changed files with 11 additions and 4 deletions
|
|
@ -323,13 +323,20 @@ pub fn build_zig_host_native(
|
|||
.env("PATH", &env_path)
|
||||
.env("HOME", &env_home);
|
||||
if let Some(shared_lib_path) = shared_lib_path {
|
||||
let native_bitcode;
|
||||
let builtins_ext;
|
||||
|
||||
#[cfg(windows)]
|
||||
let native_bitcode = bitcode::HOST_WINDOWS;
|
||||
let builtins_ext = ".obj";
|
||||
{
|
||||
native_bitcode = bitcode::HOST_WINDOWS;
|
||||
builtins_ext = ".obj";
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
let native_bitcode = bitcode::HOST_UNIX;
|
||||
let builtins_ext = ".o";
|
||||
{
|
||||
native_bitcode = bitcode::HOST_UNIX;
|
||||
builtins_ext = ".o";
|
||||
}
|
||||
|
||||
let builtins_host_file = tempfile::Builder::new()
|
||||
.prefix("host_bitcode")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue