From c9b00a71b90cb7dea84424f2bec71dff134d9c42 Mon Sep 17 00:00:00 2001 From: Kiril Lipatov Date: Mon, 31 Mar 2025 23:32:15 +0200 Subject: [PATCH] Update programs/other/calcplus/Tupfile.lua --- programs/other/calcplus/Tupfile.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/programs/other/calcplus/Tupfile.lua b/programs/other/calcplus/Tupfile.lua index 63ee1d4c1..6e5ed9a6c 100644 --- a/programs/other/calcplus/Tupfile.lua +++ b/programs/other/calcplus/Tupfile.lua @@ -1,2 +1,5 @@ if tup.getconfig("NO_FASM") ~= "" then return end -tup.rule("calcplus.asm", "fasm %f %o -dlang=" .. tup.getconfig("LANG") .. " %f %o" .. tup.getconfig("KPACK_CMD"), "%B") +HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR") +tup.include(HELPERDIR .. "/use_fasm.lua") +tup.rule("calcplus.asm", FASM .. " -dlang=" .. tup.getconfig("LANG") .. " %f %o" .. tup.getconfig("KPACK_CMD"), "%B") +