When the cmake configure of the stage2 is failing, dump the cmake error log

This commit is contained in:
Sylvestre Ledru 2018-10-19 11:26:52 +02:00
parent 5bd607295a
commit 6f631cda3c
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -1,6 +1,7 @@
llvm-toolchain-7 (1:7-7~exp2) experimental; urgency=medium
* clangd-atomic-cmake.patch: Link against atomic for clangd in i386
* When the cmake configure of the stage2 is failing, dump the cmake error log
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 19 Oct 2018 11:17:16 +0200

2
debian/rules vendored
View File

@ -350,7 +350,7 @@ VERBOSE=VERBOSE=1
#VERBOSE=-v
debian-stage2-build:
$(PRE_PROCESS) make $(NJOBS) -C $(TARGET_BUILD) $(VERBOSE) CXXFLAGS="$(CXXFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)" REQUIRES_RTTI=1 DEBUGMAKE=1 stage2
$(PRE_PROCESS) make $(NJOBS) -C $(TARGET_BUILD) $(VERBOSE) CXXFLAGS="$(CXXFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)" REQUIRES_RTTI=1 DEBUGMAKE=1 stage2 || if test -f $(TARGET_BUILD_STAGE2)/CMakeFiles/CMakeError.log; then cat $(TARGET_BUILD_STAGE2)/CMakeFiles/CMakeError.log; fi
if grep "CMAKE_BUILD_TYPE:STRING=Debug" $(TARGET_BUILD_STAGE2)/CMakeCache.txt; then \
echo "clang stage2 has been built in upstream Debug mode. Too slow, we don't want that."; \
fi