mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Fixup
Signed-off-by: Kakadu <Kakadu@pm.me>
This commit is contained in:
parent
ba9c32f38a
commit
46f5e43cee
1 changed files with 10 additions and 9 deletions
19
byterun/dune
19
byterun/dune
|
|
@ -7,24 +7,25 @@
|
|||
(mode
|
||||
(promote (until-clean)))
|
||||
(action
|
||||
(run gcc %{read:mac-specific-flags.txt} -g %{main} %{runtime} -o %{target})))
|
||||
(run
|
||||
gcc
|
||||
%{read-lines: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")))))
|
||||
(write-file %{target} "")))
|
||||
|
||||
(rule
|
||||
(target mac-specific-flags.txt)
|
||||
(enabled_if
|
||||
(= %{ocaml-config:system} macosx))
|
||||
(action
|
||||
(progn
|
||||
(with-stdout-to
|
||||
%{target}
|
||||
(run printf "-arch x86_64 -ld_classic")))))
|
||||
(write-file %{target} "-arch\nx86_64\n-ld_classic")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue