Boost logo

Boost-Build :

Subject: [Boost-build] CHECK_IF_FILE fails on Windows if first character in file name is /
From: Jim Gallagher (jim_at_[hidden])
Date: 2010-10-06 11:01:04


Hi,

I do not understand all the details, but it seems that on Windows,
absolute paths get prepended with a /. The CHECK_IF_FILE built-in
fails if this leading / is present. I assume that the / is still
present when stat is called in file_query().

An easy fix would be to check if the path is absolute and move
filename pointer over one character, but I don't know enough about the
internals to know if this is the best fix.

Thanks,
Jim Gallagher


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk