Skip to content

Commit

Permalink
Check whether hard links between different directories work.
Browse files Browse the repository at this point in the history
  • Loading branch information
vprus committed Dec 17, 2013
1 parent 5d8dd4c commit 6a5a9b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tools/link.jam
Expand Up @@ -69,8 +69,14 @@ rule can-hardlink ( project : ps )

local source-target = [ new file-target test-hardlink-source : :
$(project) : [ new action : link.touch ] ] ;
# Use <location-prefix> so that the destination link is created
# in a different directory. AFS refuses to make hard links
# between files in different directories, so we want to check
# it.
local target = [ new file-target test-hardlink : :
$(project) : [ new action $(source-target) : link.hardlink ] ] ;
$(project) : [ new action $(source-target) : link.hardlink
: [ new property-set <location-prefix>symlink ]
] ] ;

if [ configure.try-build $(target) : $(ps) : "hardlinks supported" ]
{
Expand Down

0 comments on commit 6a5a9b7

Please sign in to comment.