if we used sccache, show the stats

This commit is contained in:
Sylvestre Ledru 2022-10-15 11:37:30 +02:00
parent d33bd3b8aa
commit 24275bf8d9

5
debian/rules vendored
View File

@ -648,6 +648,11 @@ debian-full-build:
LD_LIBRARY_PATH=$(STAGE_1_LIB_DIR):$$LD_LIBRARY_PATH \ LD_LIBRARY_PATH=$(STAGE_1_LIB_DIR):$$LD_LIBRARY_PATH \
VERBOSE=1 $(PRE_PROCESS) $(CMAKE_BIN) --build $(TARGET_BUILD) $(NJOBS) --target stage2 VERBOSE=1 $(PRE_PROCESS) $(CMAKE_BIN) --build $(TARGET_BUILD) $(NJOBS) --target stage2
# If we used sccache, shows stats
if test -f /tmp/sccache; then \
/tmp/sccache --show-stats; \
fi
# Check the stage 2 build worked # Check the stage 2 build worked
if ! readelf --string-dump .comment $(TARGET_BUILD_STAGE2)/bin/clang 2>&1|grep -q "clang version"; then \ if ! readelf --string-dump .comment $(TARGET_BUILD_STAGE2)/bin/clang 2>&1|grep -q "clang version"; then \
echo "clang hasn't been built using clang. Bye bye. Check that the stage2 build has been done."; \ echo "clang hasn't been built using clang. Bye bye. Check that the stage2 build has been done."; \