INSTALL: minor typo fix
PATCH 1/1 INSTALL: minor typo fix
--- INSTALL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
INSTALL +1 -1
@@ -53,7 +53,7 @@ or As a caveat: a profile-optimized build takes a *lot* longer since the git tree must be built twice, and in order for the profiling -measurements to work properly, ccache must be disabled and the test +measurements to work properly, cache must be disabled and the test suite has to be run using only a single CPU. In addition, the profile feedback build stage currently generates a lot of additional compiler warnings.
Signature · 1 line
2.3.0-rc1
Hi Alexander
Quoted 10 lines · Alexander Kuleshov
Signed-off-by Alexander Kuleshov <[email protected]>--- INSTALL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)INSTALL +0
-0
INSTALL or
Quoted 9 lines
INSTALL +1
-2@@ -53,7 +53,7 @@ or As a caveat: a profile-optimized build takes a *lot* longer since the git tree must be built twice, and in order for the profiling -measurements to work properly, ccache must be disabled and the test +measurements to work properly, cache must be disabled and the test suite has to be run using only a single CPU. In addition, the profile feedback build stage currently generates a lot of additional compiler warnings. --
That's not a typo ccache[1] is a compiler cache tool that can be used to speed up rebuilding object files. I don't know anything about the profile enabled builds but I imagine it has something to do with needing the 2nd build to produce difference object files from the first (with ccache enabled I imagine the 2nd build would result in identical output since on source files are changed between builds).
--
[1] - https://ccache.samba.org/
Quoted 13 lines · Chris Packham
Quoted 11 lines · Alexander Kuleshov
Signed-off-by Alexander Kuleshov <[email protected]>--- INSTALL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)INSTALL +0
-0@@ -53,7 +53,7 @@ or
Quoted 15 lines
INSTALL or
Quoted 8 lines
INSTALL +1
-2As a caveat: a profile-optimized build takes a *lot* longer since the git tree must be built twice, and in order for the profiling -measurements to work properly, ccache must be disabled and the test +measurements to work properly, cache must be disabled and the test suite has to be run using only a single CPU. In addition, the profile feedback build stage currently generates a lot of additional compiler warnings. --That's not a typo ccache[1] is a compiler cache tool that can be used to speed up rebuilding object files. I don't know anything about the profile enabled builds but I imagine it has something to do with needing the 2nd build to produce difference object files from the first (with ccache enabled I imagine the 2nd build would result in identical output since on source files are changed between builds).
Yes, ccache creates a cache key for each file based on the command line flags to the compiler, and the output of the pre-processor when run on the file. The profiling data generated by the first run is outside of what ccache knows about, so it can't include that information in its cache key (and consequently, we get false cache hits).
So yeah. Not a typo.
-Peff
Quoted 15 lines · Chris Packham
Hi Alexander
Quoted 11 lines · Alexander Kuleshov
Signed-off-by Alexander Kuleshov <[email protected]>--- INSTALL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)INSTALL +0
-0@@ -53,7 +53,7 @@ or
Quoted 13 lines
INSTALL or
Quoted 8 lines
INSTALL +1
-2As a caveat: a profile-optimized build takes a *lot* longer since the git tree must be built twice, and in order for the profiling -measurements to work properly, ccache must be disabled and the test +measurements to work properly, cache must be disabled and the test suite has to be run using only a single CPU. In addition, the profile feedback build stage currently generates a lot of additional compiler warnings. --That's not a typo ccache[1] is a compiler cache tool that can be used to speed up rebuilding object files. I don't know anything about the profile enabled builds but I imagine it has something to do with needing the 2nd build to produce difference object files from the
s/difference/different/
Quoted 5 lines
first (with ccache enabled I imagine the 2nd build would result in identical output since on source files are changed between builds).
--
[1] - https://ccache.samba.org/
The commit that added that note f2d713fc[1] has a bit more of an explanation of why profile enabled builds and ccache are incompatible.
[1] - https://github.com/git/git/commit/f2d713fc3e8e0b7be89584f04b421808aa99c403