summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-11-04 23:38:17 +0800
committerruki <[email protected]>2022-11-04 23:38:17 +0800
commit6744d49caefb927499af57546c87f36e673f993e (patch)
treeb633bdc4264b2ffb1d653fab77a257db51f18d55
parent6936036c0ea4baff2f4f472313be959a433a8614 (diff)
fix extraconf
-rw-r--r--xmake/core/tool/builder.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index f86b8a9bd..67acf15a2 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -157,7 +157,7 @@ function builder:_add_flags_from_flagkind(flags, target, flagkind, opt)
-- only for clang and multiple flags: add_cxxflags("-stdlib=libc++", "-DFOO", {tools = "clang"})
--
local for_this_tool = true
- local flagconf = extraconf[flag]
+ local flagconf = extraconf and extraconf[flag]
if flag:find("::", 1, true) then
for_this_tool = false
local splitinfo = flag:split("::", {plain = true})