diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-09-08 06:17:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-09-08 06:17:08 +0200 |
commit | 6f6b82d00051587fa3496d0bc3f4fe1ff512dda3 (patch) | |
tree | 8492b6b7ccd17a38b5b9e01b2ef77782fec9697a /libbuild2/cc/module.cxx | |
parent | 17c1214943959b304ab5cdcccacec8a70c7a6c0f (diff) |
Manually extract library search paths from LIBRARY_PATH for Clang
Unlike GCC, Clang does not incorporate the LIBRARY_PATH environment variable
value into the -print-search-dirs output.
Diffstat (limited to 'libbuild2/cc/module.cxx')
-rw-r--r-- | libbuild2/cc/module.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbuild2/cc/module.cxx b/libbuild2/cc/module.cxx index e0bdf25..40857d7 100644 --- a/libbuild2/cc/module.cxx +++ b/libbuild2/cc/module.cxx @@ -613,10 +613,10 @@ namespace build2 switch (xi.class_) { case compiler_class::gcc: - lib_dirs = gcc_library_search_dirs (xi.path, rs); + lib_dirs = gcc_library_search_dirs (xi, rs); break; case compiler_class::msvc: - lib_dirs = msvc_library_search_dirs (xi.path, rs); + lib_dirs = msvc_library_search_dirs (xi, rs); break; } } @@ -630,10 +630,10 @@ namespace build2 switch (xi.class_) { case compiler_class::gcc: - hdr_dirs = gcc_header_search_dirs (xi.path, rs); + hdr_dirs = gcc_header_search_dirs (xi, rs); break; case compiler_class::msvc: - hdr_dirs = msvc_header_search_dirs (xi.path, rs); + hdr_dirs = msvc_header_search_dirs (xi, rs); break; } } |