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 /xmake/modules | |
| parent | f73e850fdce6d46aa05cab820060fa0c0f48f9d8 (diff) | |
Change set_languagemode to add_languages
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/fpc.lua | 6 |
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 |
