summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-03-31 23:51:55 +0800
committerruki <[email protected]>2025-03-31 23:51:55 +0800
commitc47e0343c7f79de334243b330b9e64fc279e636f (patch)
treec20c3ff696e28dda3b7a69f8f956fc722e67d6b3
parent1c9f67be8ee5520891196b2c2577efda70329418 (diff)
add includes to check_macros
-rw-r--r--xmake/includes/check/check_macros.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/includes/check/check_macros.lua b/xmake/includes/check/check_macros.lua
index bf87b273e..ebefe482a 100644
--- a/xmake/includes/check/check_macros.lua
+++ b/xmake/includes/check/check_macros.lua
@@ -71,6 +71,9 @@ function check_macros(definition, macros, opt)
if opt.cxxflags then
add_cxxflags(opt.cxxflags)
end
+ if opt.includes then
+ add_cincludes(opt.includes)
+ end
option_end()
interp_restore_scope()
add_options(optname)
@@ -130,6 +133,9 @@ function configvar_check_macros(definition, macros, opt)
if opt.cxxflags then
add_cxxflags(opt.cxxflags)
end
+ if opt.includes then
+ add_cincludes(opt.includes)
+ end
option_end()
interp_restore_scope()
if opt.default == nil then