diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-05 11:34:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-05 11:34:47 +0200 |
commit | 4fe1c3c083acecf7eabe46b67cb540e8390f3122 (patch) | |
tree | 62f60d60ed49d037c00dd82b0c8f5ecacba32689 /libbuild2/cc/module.cxx | |
parent | b95fe77721b5d3f35d94e7f1292c9581034cd4bd (diff) |
Add support for supplying MSVC IFCPATH equivalent
Diffstat (limited to 'libbuild2/cc/module.cxx')
-rw-r--r-- | libbuild2/cc/module.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libbuild2/cc/module.cxx b/libbuild2/cc/module.cxx index 5f8652e..881583f 100644 --- a/libbuild2/cc/module.cxx +++ b/libbuild2/cc/module.cxx @@ -403,8 +403,11 @@ namespace build2 // Extract system header/library search paths from the compiler and // determine if we need any additional search paths. // + // Note that for now module search paths only come from compiler_info. + // dir_paths lib_dirs; dir_paths inc_dirs; + const optional<dir_paths>& mod_dirs (xi.sys_mod_dirs); if (xi.sys_lib_dirs) lib_dirs = *xi.sys_lib_dirs; @@ -599,6 +602,15 @@ namespace build2 dr << "\n pattern " << xi.pattern; } + if (verb >= 3 && mod_dirs && !mod_dirs->empty ()) + { + dr << "\n mod dirs"; + for (const dir_path& d: *mod_dirs) + { + dr << "\n " << d; + } + } + if (verb >= 3 && !inc_dirs.empty ()) { dr << "\n inc dirs"; |