diff options
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 3 | ||||
| -rw-r--r-- | xmake/modules/private/check/checkers/api/target/encodings.lua | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 18f6ee868..8702dade6 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -363,7 +363,8 @@ function nf_encoding(self, encoding) end local charsets = { ["utf-8"] = "utf-8", - utf8 = "utf-8" + utf8 = "utf-8", + gb2312 = "gb2312" } local flags = {} charset = charsets[charset:lower()] diff --git a/xmake/modules/private/check/checkers/api/target/encodings.lua b/xmake/modules/private/check/checkers/api/target/encodings.lua index a4ec908f3..01256d310 100644 --- a/xmake/modules/private/check/checkers/api/target/encodings.lua +++ b/xmake/modules/private/check/checkers/api/target/encodings.lua @@ -24,5 +24,5 @@ import(".api_checker") function main(opt) opt = opt or {} api_checker.check_targets("encodings", table.join(opt, {values = { - "none", "utf-8", "source:utf-8", "target:utf-8"}})) + "none", "utf-8", "source:utf-8", "target:utf-8", "source:gb2312", "target:gb2312"}})) end |
