mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 14:58:50 +00:00
Add mac-specific flags to compile byterun on Darwin
Signed-off-by: Kakadu <Kakadu@pm.me>
This commit is contained in:
parent
57a4bafb9a
commit
259b52bb83
1 changed files with 21 additions and 1 deletions
22
byterun/dune
22
byterun/dune
|
|
@ -6,4 +6,24 @@
|
|||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(run gcc -g %{main} %{runtime} -o %{target})))
|
||||
(run gcc %{read:mac-specific-flags.txt} -g %{main} %{runtime} -o %{target})))
|
||||
|
||||
(rule
|
||||
(target mac-specific-flags.txt)
|
||||
(enabled_if
|
||||
(= %{system} "linux"))
|
||||
(action
|
||||
(progn
|
||||
(with-stdout-to
|
||||
%{target}
|
||||
(run printf "-g")))))
|
||||
|
||||
(rule
|
||||
(target mac-specific-flags.txt)
|
||||
(enabled_if
|
||||
(= %{system} "darwin"))
|
||||
(action
|
||||
(progn
|
||||
(with-stdout-to
|
||||
%{target}
|
||||
(run printf "-arch x86_64 -ld_classic")))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue