diff options
| author | ruki <[email protected]> | 2016-11-07 22:48:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-11-07 22:48:41 +0800 |
| commit | d59184e0fdb61ba2ac326da945e2fa41c412384a (patch) | |
| tree | ca2fa5c216f3b0cf6862abd8126ed3ed44ddf41c /xmake/core/tool/compiler.lua | |
| parent | c2f463a161a717fb71ee12281e6715dfcff276e2 (diff) | |
add configure arguments
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 |
