summaryrefslogtreecommitdiff
path: root/xmake/toolchains/tinyc
diff options
context:
space:
mode:
authorruki <[email protected]>2020-08-26 23:27:15 +0800
committerruki <[email protected]>2020-08-26 23:27:15 +0800
commiteec4437eeefde00f583a26eab860641975c5613b (patch)
treec4d9412e4781350bfd8073d080bf034e09ff6019 /xmake/toolchains/tinyc
parentac25a656e8bef9274a98f76c78626a2aeb514d33 (diff)
add winapi includes for tcc
Diffstat (limited to 'xmake/toolchains/tinyc')
-rw-r--r--xmake/toolchains/tinyc/xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/toolchains/tinyc/xmake.lua b/xmake/toolchains/tinyc/xmake.lua
index 3ef83a678..66a0fffa5 100644
--- a/xmake/toolchains/tinyc/xmake.lua
+++ b/xmake/toolchains/tinyc/xmake.lua
@@ -83,6 +83,11 @@ toolchain("tinyc")
if os.isdir(includedir) then
toolchain:add("includedirs", includedir)
end
+ local winenv_tcc_winapi = path.join(os.programdir(), "winenv", "tcc", "winapi", "include")
+ if is_host("windows") and os.isdir(winenv_tcc_winapi) then
+ toolchain:add("includedirs", winenv_tcc_winapi)
+ toolchain:add("includedirs", path.join(winenv_tcc_winapi, "winapi"))
+ end
local linkdir = path.join(sdkdir, "lib")
if os.isdir(linkdir) then
toolchain:add("linkdirs", linkdir)