Skip to content

Commit

Permalink
[FIX] Add ci_fix include path only when it exists.
Browse files Browse the repository at this point in the history
The ci_fix path is only for CI build. We don't use it in local build.
Thus in local build we always see a warning complaining the file does
not exist. By adding a conditional path, we don't need to bother the
warning.
  • Loading branch information
fuzhouch committed Nov 28, 2023
1 parent 7d4eacf commit ca87665
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,10 @@ target("sdl")
set_extension(".hdll")
-- Ci_fix folder contains only replaceable headers making hashlink
-- happy.
add_includedirs("hashlink/src", "hashlink/ci_fix")
add_includedirs("hashlink/src")
if os.isdir("hashlink/ci_fix") then
add_includedirs("hashlink/ci_fix")
end
add_files("hashlink/libs/sdl/sdl.c",
"hashlink/libs/sdl/gl.c")
add_deps("libhl")
Expand Down

0 comments on commit ca87665

Please sign in to comment.