Apps/mstate: Rewrite from nasm to fasm

This commit is contained in:
2025-02-27 12:07:00 +02:00
committed by Max Logaev
parent 6a9608c7a4
commit ed8e4ecf33
5 changed files with 235 additions and 250 deletions

View File

@@ -1,2 +1,4 @@
if tup.getconfig("NO_NASM") ~= "" then return end
tup.rule("mstate.asm", "nasm -t -f bin -o %o %f " .. tup.getconfig("KPACK_CMD"), "mstate")
if tup.getconfig("NO_FASM") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_fasm.lua")
tup.rule("mstate.asm", FASM .. " -dlang=" .. tup.getconfig("LANG") .. " %f %o " .. tup.getconfig("KPACK_CMD"), "mstate")