summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------core/src/tbox/tbox0
-rw-r--r--core/xmake.lua10
2 files changed, 10 insertions, 0 deletions
diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox
-Subproject 553c32406a09e3e0a0a8e8dfed741b4888ba07c
+Subproject 57e57a3271ad925936b3fbf37877f9eceb49ee4
diff --git a/core/xmake.lua b/core/xmake.lua
index 675d4676f..df84e81bb 100644
--- a/core/xmake.lua
+++ b/core/xmake.lua
@@ -48,6 +48,16 @@ if is_mode("coverage") then
add_ldflags("-coverage", "-fprofile-arcs", "-ftest-coverage")
end
+-- set cosmocc toolchain, e.g. xmake f -p linux --cosmocc=y
+if has_config("cosmocc") then
+ add_requires("cosmocc")
+ set_toolchains("@cosmocc")
+ set_policy("build.ccache", false)
+end
+
+-- the cosmocc option
+option("cosmocc", {default = false, category = "option", description = "Use cosmocc toolchain to build once and run anywhere."})
+
-- the runtime option
option("runtime")
set_default("lua")