diff options
Diffstat (limited to 'xmake/core/tool/compiler.lua')
| -rw-r--r-- | xmake/core/tool/compiler.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua index 00c50ea3f..b11e5c065 100644 --- a/xmake/core/tool/compiler.lua +++ b/xmake/core/tool/compiler.lua @@ -113,6 +113,11 @@ function compiler:_addflags_from_config(flags) for _, flagname in ipairs(self:_flagnames()) do table.join2(flags, config.get(flagname)) end + + -- add the includedirs flags + for _, includedir in ipairs(table.wrap(config.get("includedirs"))) do + table.join2(flags, self:includedir(includedir)) + end end -- add flags from the target |
