summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorlebao3105 <[email protected]>2026-01-14 16:00:46 +0700
committerruki <[email protected]>2026-01-23 23:16:31 +0800
commitc4893018e56ddd2c6a4e8cdba47feb020c20f1af (patch)
tree52988fb65318d8c8641640d8321ff4936455184e /xmake/modules
parentf73e850fdce6d46aa05cab820060fa0c0f48f9d8 (diff)
Change set_languagemode to add_languages
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/core/tools/fpc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/fpc.lua b/xmake/modules/core/tools/fpc.lua
index 15216ce96..49be3156d 100644
--- a/xmake/modules/core/tools/fpc.lua
+++ b/xmake/modules/core/tools/fpc.lua
@@ -123,8 +123,8 @@ function nf_undefine(self, macro)
end
-- make the language flag
-function nf_languagemode(self, language)
- local table = {
+function nf_language(self, language)
+ local mode = {
pascal = "-Mfpc",
fpc = "-Mfpc",
objfpc = "-Mobjfpc",
@@ -134,7 +134,7 @@ function nf_languagemode(self, language)
extendedpascal = "-Mextendedpascal",
delphiunicode = "-Mdelphiunicode",
}
- return table[language]
+ return mode[language]
end
-- make the build arguments list