mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-10-30 18:42:11 +00:00
cmake & its libs, try to replicate that I did for 11 (will be done in 13 if it works
This commit is contained in:
parent
ecc838c937
commit
a1792c0e95
40
debian/rules
vendored
40
debian/rules
vendored
@ -296,6 +296,14 @@ ifneq (,$(filter $(DEB_HOST_ARCH), mips64 mips64el))
|
||||
LIBOMP_ARCH = mips64
|
||||
endif
|
||||
|
||||
# if cmake is installed in /tmp/cmake/ uses it
|
||||
# Used to build llvm on old ubuntu (precise) on the llvm.org/apt/ ci
|
||||
CMAKE_BIN=cmake
|
||||
ifeq ($(shell test -e /tmp/cmake/bin/cmake && echo -n yes),yes)
|
||||
CMAKE_BIN=/tmp/cmake/bin/cmake
|
||||
export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/tmp/cmake/bin/
|
||||
endif
|
||||
|
||||
%:
|
||||
dh $@ $(DH_OPTIONS)
|
||||
|
||||
@ -377,17 +385,7 @@ override_dh_auto_configure: preconfigure
|
||||
fi)
|
||||
|
||||
echo "Running tests: $(RUN_TEST)"
|
||||
|
||||
# if cmake is installed in /tmp/cmake/ uses it
|
||||
# Used to build llvm on Debian & Ubuntu with a recent cmake
|
||||
# on the llvm.org/apt/ ci
|
||||
# Use D24cmake as hook to download/setup
|
||||
CMAKE_BIN=cmake; \
|
||||
if test -f /tmp/cmake/bin/cmake; then \
|
||||
CMAKE_BIN=/tmp/cmake/bin/cmake; \
|
||||
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/tmp/cmake/bin/; \
|
||||
fi; \
|
||||
echo "Using cmake: $$CMAKE_BIN"; \
|
||||
echo "Using cmake: $(CMAKE_BIN)"; \
|
||||
cd $(TARGET_BUILD) && \
|
||||
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH $(PRE_PROCESS_CONF) $$CMAKE_BIN ../llvm/ \
|
||||
-DLLVM_ENABLE_PROJECTS="$(PROJECTS_LIST)" \
|
||||
@ -431,10 +429,6 @@ VERBOSE=VERBOSE=1
|
||||
#VERBOSE=-v
|
||||
|
||||
debian-full-build:
|
||||
if test -f /tmp/cmake/bin/cmake; then \
|
||||
CMAKE_BIN=/tmp/cmake/bin/cmake; \
|
||||
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/tmp/cmake/bin/; \
|
||||
fi; \
|
||||
$(PRE_PROCESS) make $(NJOBS) -C $(TARGET_BUILD) $(VERBOSE) CFLAGS="$(CFLAGS_EXTRA)" CXXFLAGS="$(CXXFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)" REQUIRES_RTTI=1 DEBUGMAKE=1 $(BUILD_METHOD)
|
||||
|
||||
# Check the stage 2 build worked
|
||||
@ -487,13 +481,9 @@ debian-libcxx-build:
|
||||
mkdir -p libcxx/build
|
||||
mkdir -p libcxxabi/build
|
||||
|
||||
CMAKE_BIN=cmake; \
|
||||
if test -f /tmp/cmake/bin/cmake; then \
|
||||
CMAKE_BIN=/tmp/cmake/bin/cmake; \
|
||||
fi; \
|
||||
echo "Using cmake: $$CMAKE_BIN"; \
|
||||
echo "Using cmake: $(CMAKE_BIN)"; \
|
||||
cd libcxxabi/build && \
|
||||
$(PRE_PROCESS_CONF) $$CMAKE_BIN ../ \
|
||||
$(PRE_PROCESS_CONF) $(CMAKE_BIN) ../ \
|
||||
$(LIBCXX_CMAKE_OPTIONS) \
|
||||
-DLIBCXXABI_LIBCXX_PATH=$(BASE_PATH)/libcxx \
|
||||
-DLIBCXXABI_LIBCXX_LIBRARY_PATH=$(BASE_PATH)/libcxx/build/lib \
|
||||
@ -508,13 +498,9 @@ debian-libcxxabi-build:
|
||||
|
||||
mkdir -p libcxxabi/build
|
||||
|
||||
CMAKE_BIN=cmake; \
|
||||
if test -f /tmp/cmake/bin/cmake; then \
|
||||
CMAKE_BIN=/tmp/cmake/bin/cmake; \
|
||||
fi; \
|
||||
echo "Using cmake: $$CMAKE_BIN"; \
|
||||
echo "Using cmake: $(CMAKE_BIN)"; \
|
||||
cd libcxx/build && \
|
||||
$(PRE_PROCESS_CONF) $$CMAKE_BIN ../ \
|
||||
$(PRE_PROCESS_CONF) $(CMAKE_BIN) ../ \
|
||||
$(LIBCXX_CMAKE_OPTIONS) \
|
||||
-DLIBCXX_CXX_ABI=libcxxabi \
|
||||
-DLIBCXX_CXX_ABI_INCLUDE_PATHS=$(BASE_PATH)/libcxxabi/include \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user