mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
30 lines
571 B
Text
30 lines
571 B
Text
(rule
|
|
(target byterun.exe)
|
|
(deps
|
|
(:main byterun.c)
|
|
(:runtime ../runtime/runtime.a)
|
|
mac-specific-flags.txt)
|
|
(mode
|
|
(promote (until-clean)))
|
|
(action
|
|
(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")))))
|