From 4fe1c3c083acecf7eabe46b67cb540e8390f3122 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Nov 2019 11:34:47 +0200 Subject: Add support for supplying MSVC IFCPATH equivalent --- libbuild2/cc/module.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libbuild2/cc/module.cxx') 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& 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"; -- cgit v1.1