summaryrefslogtreecommitdiff
path: root/xmake/toolchains/tinycc/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-11 23:42:24 +0800
committerruki <[email protected]>2024-04-11 23:42:24 +0800
commitacbfe1f92df15fe3e068ec23c2b4cdca3f216b4d (patch)
tree8b38060a67e22a161f90e7f8f750eadff6832b78 /xmake/toolchains/tinycc/xmake.lua
parent8547470a497fcd86a9e6f54dc0b1782322bd5a53 (diff)
improve tinycc
Diffstat (limited to 'xmake/toolchains/tinycc/xmake.lua')
-rw-r--r--xmake/toolchains/tinycc/xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/toolchains/tinycc/xmake.lua b/xmake/toolchains/tinycc/xmake.lua
index 0cb00e1a0..8fcdb9c7a 100644
--- a/xmake/toolchains/tinycc/xmake.lua
+++ b/xmake/toolchains/tinycc/xmake.lua
@@ -42,6 +42,9 @@ toolchain("tinycc")
local tcc = find_tool("tcc", {paths = paths})
if tcc then
toolchain:config_set("tcc", tcc.program)
+ if os.isfile(tcc.program) then
+ toolchain:config_set("bindir", path.directory(tcc.program))
+ end
toolchain:configs_save()
return true
end