mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Fix Swift linking
This commit is contained in:
parent
ba90cbfbd2
commit
ebc314691c
1 changed files with 4 additions and 0 deletions
|
@ -540,6 +540,10 @@ pub fn build_swift_host_native(
|
|||
.arg("swiftc")
|
||||
.args(sources)
|
||||
.arg("-emit-object")
|
||||
// `-module-name host` renames the .o file to "host" - otherwise you get an error like:
|
||||
// error: module name "legacy_macos-arm64" is not a valid identifier; use -module-name flag to specify an alternate name
|
||||
.arg("-module-name")
|
||||
.arg("host")
|
||||
.arg("-parse-as-library")
|
||||
.args(["-o", dest]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue