2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-19 04:02:14 +00:00

Fix import-search failing when given Windows path refs.

When guiven a Windows dir reference to add to the import search it would previously treat the reference as a non-native path, root it, and directly add it to the search dirs. But for windows that means it would always root it with the current dir as native win paths look like non-native relative paths. This change fixes the issue by properly creating the given ref to a non-native path and back to a native path to add to BOOST_BUILD_PATH which only contains native paths.
This commit is contained in:
Rene Rivera
2024-01-23 22:31:28 -06:00
parent 31ff337943
commit f1ca839538

View File

@@ -1579,16 +1579,16 @@ module project-rules
if $(project-dir)
{
# Resolved it as a project reference.
dir = $(project-dir) ;
dir = [ path.native $(project-dir) ] ;
}
}
if ! $(dir)
{
local os-dir = [ path.root $(reference) [ path.pwd ] ] ;
local os-dir = [ path.root [ path.make $(reference) ] [ path.pwd ] ] ;
if ! [ CHECK_IF_FILE [ path.native $(os-dir) ] ]
{
# It's not a file, i.e. it's a directory.
dir = $(os-dir) ;
dir = [ path.native $(os-dir) ] ;
}
}
if $(dir)