mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +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,
|
// but with the dev backend, they are missing. To minimize work,
|
||||||
// we link them as part of the host executable
|
// we link them as part of the host executable
|
||||||
let builtins_bytes = if target.contains("windows") {
|
let builtins_bytes = if target.contains("windows") {
|
||||||
|
#[cfg(windows)]
|
||||||
|
{
|
||||||
bitcode::HOST_WINDOWS
|
bitcode::HOST_WINDOWS
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(not(windows))]
|
||||||
|
{
|
||||||
|
panic!(
|
||||||
|
"Building shared libraries for other operating systemes is not supported yet!"
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
#[cfg(unix)]
|
||||||
|
{
|
||||||
bitcode::HOST_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
|
// TODO in the future when we have numbered releases, this
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue