summaryrefslogtreecommitdiff
path: root/xmake/toolchains/tinycc/xmake.lua
diff options
context:
space:
mode:
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