2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Make sure DMC compiler is invoked by command containing only backward slashes.

Thanks to Daniel James for reporting that this is necessary.


[SVN r33122]
This commit is contained in:
Vladimir Prus
2006-02-26 16:52:26 +00:00
parent 0550b6e361
commit da338aad39

View File

@@ -13,6 +13,7 @@
import feature generators common ;
import toolset : flags ;
import sequence regex ;
feature.extend toolset : dmc ;
@@ -33,7 +34,10 @@ rule init ( version ? : command * : options * )
if $(root)
{
flags dmc .root $(condition) : $(root)/bin/ ;
# DMC linker is sensitive the the direction of slashes, and
# won't link if forward slashes are used in command.
root = [ sequence.join [ regex.split $(root) "/" ] : "\\" ] ;
flags dmc .root $(condition) : $(root)\bin\ ;
}
else
{