diff options
| -rw-r--r-- | xmake/core/tool/builder.lua | 2 |
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}) |
