From d59184e0fdb61ba2ac326da945e2fa41c412384a Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 7 Nov 2016 22:48:41 +0800 Subject: add configure arguments --- xmake/core/tool/compiler.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmake/core/tool/compiler.lua') 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 -- cgit v1.3.1