summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-25 00:38:31 +0800
committerruki <[email protected]>2025-01-25 00:38:31 +0800
commit1f629c280dfc10eddd81e769114a87771d234201 (patch)
tree61ff9952cac727bfe0154e7e09a8ff68b31bd472
parentef10196cf27fcb419d78f9e30e84e806b4e97809 (diff)
add march
-rw-r--r--xmake/toolchains/ti-c2000/xmake.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/xmake/toolchains/ti-c2000/xmake.lua b/xmake/toolchains/ti-c2000/xmake.lua
index 12d606189..ea0026977 100644
--- a/xmake/toolchains/ti-c2000/xmake.lua
+++ b/xmake/toolchains/ti-c2000/xmake.lua
@@ -28,7 +28,7 @@ toolchain("ti-c2000")
set_toolset("ld", "cl2000")
set_toolset("sh", "cl2000")
set_toolset("ar", "ar2000")
- set_toolset("strip", "strip2000")
+ set_toolset("strip", "strip6x")
set_toolset("as", "cl2000")
on_check(function (toolchain)
@@ -36,5 +36,12 @@ toolchain("ti-c2000")
end)
on_load(function (toolchain)
- -- TODO
+ local march = {"-ml", "-mt", "-v28"} -- TODO
+ if march then
+ toolchain:add("cxflags", march)
+ toolchain:add("mxflags", march)
+ toolchain:add("asflags", march)
+ toolchain:add("ldflags", march)
+ toolchain:add("shflags", march)
+ end
end)