Opened 14 years ago

Last modified 14 years ago

#2952 new Bugs

Windows: path.glob doesn't accept paths at the root of the current drive

Reported by: John <jwbito@…> Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost.Build-M3 Severity: Problem
Keywords: Cc:

Description

Trying to provide a full pathname to boost-build caused
error: Unknown target type EXE
The problem occurs with

boost-build /temp/boost-build ;

Based on the debug output the leading slash of the pathname is removed in util/path.jam:

/temp/boost-build/util\path.jam:54:>>>>|>>>>|>>>>|>>>>| native-NT /temp/boost-build/tools/types/*.jam
/temp/boost-build/util\path.jam:464:>>>>|>>>>|>>>>|>>>>|>> MATCH ^/?(.*) : /temp/boost-build/tools/types/*.jam
/temp/boost-build/util\path.jam:464:>>>>|>>>>|>>>>|>>>>|>> local result = temp/boost-build/tools/types/*.jam
/temp/boost-build/util\path.jam:465:>>>>|>>>>|>>>>|>>>>|>> regex.split temp/boost-build/tools/types/*.jam /

While the equivalent

boost-build c:/temp/boost-build ;

is processed successfully. Note that the boost-build kernel is loaded using the path specified in either case, up to the point of loading the contents of tools/types/.

Change History (1)

comment:1 by Steven Watanabe, 14 years ago

Component: Nonebuild
Owner: set to Vladimir Prus
Note: See TracTickets for help on using tickets.