mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Only reference native host binaries (for now)
This commit is contained in:
parent
4a601ffd4c
commit
2d83c95d23
1 changed files with 22 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue