Skip to content

Commit 4ddcf95

Browse files
committed
optimize lang config to fix issue on windows
1 parent 947c509 commit 4ddcf95

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

config.xlings

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ d2x = {
2626
},
2727
}
2828

29-
--xlings_llm_config = "llm.config.xlings"
29+
--xlings_llm_config = "llm.config.xlings"
30+
31+
mcpp = {
32+
lang = "en", -- option: en, zh
33+
}

dslings/xmake.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
local dslings_dir = os.scriptdir()
2-
3-
includes(path.join(dslings_dir, "d2x/common.lua"))
4-
51
if is_host("windows") then
62
set_encodings("source:utf-8", "target:utf-8")
73
end
84

9-
if get_local_lang() == "zh" then
5+
if mcpp.lang == "zh" then
106
add_includedirs(".")
117

128
target("00-0-hello-mcpp")

0 commit comments

Comments
 (0)