mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
build a builtins .obj file for windows cross-compilation
This commit is contained in:
parent
d9db0b7096
commit
42ef5d1977
4 changed files with 21 additions and 1 deletions
|
@ -14,6 +14,17 @@ pub fn get_builtins_host_obj_path() -> String {
|
|||
.expect("Failed to convert builtins_host_path to str")
|
||||
}
|
||||
|
||||
pub fn get_builtins_windows_obj_path() -> String {
|
||||
let builtins_host_path = get_lib_path()
|
||||
.expect(LIB_DIR_ERROR)
|
||||
.join("builtins-windows-x86_64.obj");
|
||||
|
||||
builtins_host_path
|
||||
.into_os_string()
|
||||
.into_string()
|
||||
.expect("Failed to convert builtins_host_path to str")
|
||||
}
|
||||
|
||||
pub fn get_builtins_wasm32_obj_path() -> String {
|
||||
let builtins_wasm32_path = get_lib_path()
|
||||
.expect(LIB_DIR_ERROR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue