Avoid an unused variable warning

This commit is contained in:
Richard Feldman 2022-11-22 19:25:15 -05:00
parent 9c1291d57d
commit 6b446fe592
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -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")