summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/fpc.lua
diff options
context:
space:
mode:
authorlebao3105 <[email protected]>2026-01-18 18:24:02 +0700
committerruki <[email protected]>2026-01-23 23:16:32 +0800
commit0e9aa3375f073fd9987867574854f0445d6a3971 (patch)
tree7fc409a8a675441d1673358fcace80672f5a9573 /xmake/modules/core/tools/fpc.lua
parent18ffb736a64aa3cd79310da253f9277d8b8ca279 (diff)
Update nameflags list
Diffstat (limited to 'xmake/modules/core/tools/fpc.lua')
-rw-r--r--xmake/modules/core/tools/fpc.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/fpc.lua b/xmake/modules/core/tools/fpc.lua
index 79cc4d62a..b6d7e80c2 100644
--- a/xmake/modules/core/tools/fpc.lua
+++ b/xmake/modules/core/tools/fpc.lua
@@ -138,8 +138,10 @@ function nf_language(self, language)
end
-- make the exception flag
+-- considering this applies to all dialects,
+-- make this only accept on/off
function nf_exception(self, exp)
- return {exp:startswith("no-") and "-Sx-" or "-Sx"}
+ return {exp == "off" and "-Sx-" or "-Sx"}
end
-- make the objectdir flag