diff options
| author | lebao3105 <[email protected]> | 2026-01-14 16:00:46 +0700 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-01-23 23:16:31 +0800 |
| commit | c4893018e56ddd2c6a4e8cdba47feb020c20f1af (patch) | |
| tree | 52988fb65318d8c8641640d8321ff4936455184e | |
| parent | f73e850fdce6d46aa05cab820060fa0c0f48f9d8 (diff) | |
Change set_languagemode to add_languages
| -rw-r--r-- | xmake/languages/pascal/load.lua | 6 | ||||
| -rw-r--r-- | xmake/modules/core/tools/fpc.lua | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/xmake/languages/pascal/load.lua b/xmake/languages/pascal/load.lua index 5e0979a30..41fe76d7a 100644 --- a/xmake/languages/pascal/load.lua +++ b/xmake/languages/pascal/load.lua @@ -34,7 +34,7 @@ function _get_apis() , "target.add_includedirs" , "target.add_defines" , "target.add_undefines" - , "target.set_languagemode" + , "target.add_languages" -- option.add_xxx , "option.add_links" , "option.add_syslinks" @@ -47,7 +47,7 @@ function _get_apis() , "option.add_includedirs" , "option.add_defines" , "option.add_undefines" - , "option.set_languagemode" + , "option.add_languages" -- package.add_xxx , "package.add_links" , "package.add_syslinks" @@ -74,7 +74,7 @@ function _get_apis() , "toolchain.add_includedirs" , "toolchain.add_defines" , "toolchain.add_undefines" - , "toolchain.set_languagemode" + , "toolchain.add_languages" } apis.paths = { -- target.add_xxx 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 |
