aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/module.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cc/module.cxx')
-rw-r--r--libbuild2/cc/module.cxx12
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";