mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 00:12:11 +00:00
New rule common.hard-link
[SVN r35972]
This commit is contained in:
@@ -411,11 +411,13 @@ if [ os.name ] = NT
|
||||
RM = del /f /q ;
|
||||
CP = copy ;
|
||||
IGNORE = "2>nul >nul & setlocal" ;
|
||||
LN ?= $(CP) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
RM = rm -f ;
|
||||
CP = cp ;
|
||||
LN = ln ;
|
||||
}
|
||||
|
||||
nl = "
|
||||
@@ -576,6 +578,13 @@ actions quietly updated piecemeal together RmTemps
|
||||
$(RM) "$(>)" $(IGNORE)
|
||||
}
|
||||
|
||||
actions hard-link
|
||||
{
|
||||
$(RM) "$(<)" 2$(NULL_OUT) $(NULL_OUT)
|
||||
$(LN) "$(>)" "$(<)" $(NULL_OUT)
|
||||
}
|
||||
|
||||
|
||||
# Given a target, as given to a custom tag rule, returns a string formatted
|
||||
# according to the passed format. Format is a list of properties that is
|
||||
# represented in the result. For each element of format the corresponding
|
||||
|
||||
Reference in New Issue
Block a user