From 09839eea3a69e258555eb4ef6d05cd4799ccd7a0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 29 Sep 2017 20:57:05 +0200 Subject: Extract system header search paths from GCC or compatible --- build2/cc/msvc.cxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'build2/cc/msvc.cxx') diff --git a/build2/cc/msvc.cxx b/build2/cc/msvc.cxx index b7b5828..aa4095e 100644 --- a/build2/cc/msvc.cxx +++ b/build2/cc/msvc.cxx @@ -83,6 +83,25 @@ namespace build2 } } + // Extract system header search paths from MSVC. + // + dir_paths config_module:: + msvc_header_search_paths (process_path&, scope&) const + { + // The compiler doesn't seem to have any built-in paths and all of them + // come from the INCLUDE environment variable. + + // @@ VC: how are we going to do this? E.g., cl-14 does this internally. + // cl.exe /Be prints INCLUDE. + // + // Should we actually bother? INCLUDE is normally used for system + // headers and its highly unlikely we will see an imported library + // that lists one of those directories in pkg-config Cflags value. + // Let's wait and see. + // + return dir_paths (); + } + // Extract system library search paths from MSVC. // dir_paths config_module:: -- cgit v1.1