From 21c6457971a503f8772ddb80ac7f7d18df95fd55 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 17 May 2008 06:14:11 +0000 Subject: [PATCH] Consistently use symlinks when installing Boost. * Jamroot: use symlink, not hardlink * tools/build/v2/tools/symlink.jam: Implement fallback for doing symlinks on Windows. Fixes #1902. Thanks to Frank Mori Hess for the patch. [SVN r45445] --- src/tools/symlink.jam | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tools/symlink.jam b/src/tools/symlink.jam index deec452cb..bdfcb546a 100644 --- a/src/tools/symlink.jam +++ b/src/tools/symlink.jam @@ -129,10 +129,12 @@ actions ln-UNIX ln -f -s '$(>:D=:R=$(PATH_TO_SOURCE))' '$(<)' } -# there is a way to do this; it's a dummy rule for now +# there is a way to do this; we fall back to a copy for now actions ln-NT { - echo "NT symlinks not supported yet" + echo "NT symlinks not supported yet, making copy" + del /f /q "$(<)" 2$(NULL_OUT) $(NULL_OUT) + copy "$(>)" "$(<)" $(NULL_OUT) } IMPORT $(__name__) : symlink : : symlink ;