aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/msvc.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-09-29 20:57:05 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2017-10-03 18:09:10 +0300
commit09839eea3a69e258555eb4ef6d05cd4799ccd7a0 (patch)
tree66fab0c85648740cca3ef282947e87bf95f8e183 /build2/cc/msvc.cxx
parent0fe0b18432621713f96c437dfa3c81d4e3ae8e36 (diff)
Extract system header search paths from GCC or compatible
Diffstat (limited to 'build2/cc/msvc.cxx')
-rw-r--r--build2/cc/msvc.cxx19
1 files changed, 19 insertions, 0 deletions
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::