From acbfe1f92df15fe3e068ec23c2b4cdca3f216b4d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Apr 2024 23:42:24 +0800 Subject: improve tinycc --- xmake/toolchains/tinycc/xmake.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.3.1