Skip to content

Commit

Permalink
fix tinycc error
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Apr 11, 2024
1 parent 8149723 commit 8547470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/toolchains/tinycc/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ toolchain("tinycc")
end
end
local sdkdir = toolchain:sdkdir()
if os.isdir(sdkdir) then
if sdkdir and os.isdir(sdkdir) then
local includedir = path.join(sdkdir, "include")
if os.isdir(includedir) then
toolchain:add("sysincludedirs", includedir)
Expand Down

0 comments on commit 8547470

Please sign in to comment.