mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +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
|
(mode
|
||||||
(promote (until-clean)))
|
(promote (until-clean)))
|
||||||
(action
|
(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