diff options
| author | ruki <[email protected]> | 2024-04-11 23:42:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-11 23:42:24 +0800 |
| commit | acbfe1f92df15fe3e068ec23c2b4cdca3f216b4d (patch) | |
| tree | 8b38060a67e22a161f90e7f8f750eadff6832b78 | |
| parent | 8547470a497fcd86a9e6f54dc0b1782322bd5a53 (diff) | |
improve tinycc
| -rw-r--r-- | xmake/toolchains/tinycc/xmake.lua | 3 |
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 |
