From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-03-26 07:17:11
Andre Hentz wrote:
> > Let me see... will it be OK, if we
> > (1) recognize windows absolute paths
> > (2) use forward slashes in all paths passed to build tools "MkDir
> > sub/bin" for example?
> I think that would be sufficient in most situations. I think the
> following will do the trick:
> rule make-CYGWIN ( path )
> return [ make-NT $(path) ] ;
> rule native-CYGWIN ( path )
> local result = $(path) ;
> if [ regex.match "(^/.:)" : $(path) ] # win absolute
> result = [ MATCH "^/?(.*)" : $(path) ] ; # remove leading '/'
> return [ native-UNIX $(result) ] ;
I was thinking along the same lines. I've just added your code to path.jam and
Could you update from CVS and see if CYGWIN is OK now?
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