diff options
| -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 |
