Opened 16 years ago
Last modified 15 years ago
#714 new Feature Requests (None)
[jam] HardLink rule on NT platform
| Reported by: | nobody | Owned by: | Vladimir Prus |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | build |
| Version: | Boost Development Trunk | Severity: | Optimization |
| Keywords: | Cc: |
Description (last modified by )
I've installed boost and noticed that HardLink rule on
NT copies file although NT has support for hardlinks
(on NTFS, of course).
To use this feature while installing boost i've created
file hardlink.bat with following contents:
fsutil hardlink create %2 %1
and put it into %WINDIR%\system32
also i've changed line 194 of
tools\build\v1\allyourbase.jam file from
LN ?= $(CP) ;
to
LN ?= hardlink ;
these changes allowed me to save about 600 M of my
harddisk space. Not a big deal, yes, but otherwise
these 600M would exceed my disk space :-)
I think my solution is not ideal, but it could be
helpful for people. So maybe it will be included in
boost distibution, when adapted.
Thanks.
mailto: forums (dog here) green dot nsk dot ru
Change History (3)
comment:1 by , 15 years ago
| Component: | None → bjam |
|---|---|
| Description: | modified (diff) |
| Owner: | changed from to |
| Severity: | → Showstopper |
| Status: | assigned → new |
comment:2 by , 15 years ago
| Component: | bjam → build |
|---|---|
| Milestone: | → To Be Determined |
| Owner: | changed from to |
| Severity: | Showstopper → Optimization |
| Version: | None → Boost Development Trunk |
comment:3 by , 15 years ago
I don't know if it's useful for this ticket, but I found this article about windows symlinks and hardlinks very informative: http://shell-shocked.org/article.php?id=284
Note:
See TracTickets
for help on using tickets.

Not sure why this is a showstopper. Yes, we do a copy because it's the portable thing to do. Is there a built-in command for doing hardlinks in NT?