Only reference native host binaries (for now)

This commit is contained in:
Richard Feldman 2022-11-22 18:40:08 -05:00
parent 4a601ffd4c
commit 2d83c95d23
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -119,9 +119,29 @@ pub fn build_zig_host_native(
// but with the dev backend, they are missing. To minimize work,
// we link them as part of the host executable
let builtins_bytes = if target.contains("windows") {
bitcode::HOST_WINDOWS
#[cfg(windows)]
{
bitcode::HOST_WINDOWS
}
#[cfg(not(windows))]
{
panic!(
"Building shared libraries for other operating systemes is not supported yet!"
);
}
} else {
bitcode::HOST_UNIX
#[cfg(unix)]
{
bitcode::HOST_UNIX
}
#[cfg(not(unix))]
{
panic!(
"Building shared libraries for other operating systemes is not supported yet!"
);
}
};
// TODO in the future when we have numbered releases, this