summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/tool/builder.lua')
-rw-r--r--xmake/core/tool/builder.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index f06f007e7..a59dc26c5 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -378,7 +378,13 @@ function builder:_add_flags_from_language(flags, target, getters)
--
local getters = getters or
{
- config = config.get
+ config = function (name)
+ local values = config.get(name)
+ if values and name:endswith("dirs") then
+ values = values:split(path.envsep(), {plain = true})
+ end
+ return values
+ end
, platform = platform.get
, target = function (name)