Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

if os is darwin boot does not add @ for ar path #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion asterius/src/Asterius/Boot.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import System.Directory
import System.Environment
import System.Exit
import System.FilePath
import System.Info
import System.IO hiding (IO)
import System.Process
import Prelude hiding (IO)
Expand Down Expand Up @@ -142,7 +143,7 @@ bootRTSCmm BootArgs {..} =
hClose rsp_h
callProcess
"ar"
["-r", "-c", obj_topdir </> "rts" </> "libHSrts.a", '@' : rsp_path]
["-r", "-c", obj_topdir </> "rts" </> "libHSrts.a", (if os == "darwin" then id else ('@' :)) rsp_path]
removeFile rsp_path
where
rts_path = bootLibsPath </> "rts"
Expand Down