mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 21:40:47 +00:00
Don't build wasm target on arm64 armel mips64el mipsel ppc64el armhf for now
This commit is contained in:
parent
18f70bf18e
commit
ca9dbba24d
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,8 +1,10 @@
|
|||||||
llvm-toolchain-14 (1:14.0.6-4) UNRELEASED; urgency=medium
|
llvm-toolchain-14 (1:14.0.6-4) unstable; urgency=medium
|
||||||
|
|
||||||
* fix the cmake detection with libmlir
|
* fix the cmake detection with libmlir
|
||||||
|
* Don't build wasm target on arm64 armel mips64el mipsel ppc64el armhf
|
||||||
|
for now
|
||||||
|
|
||||||
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 09 Oct 2022 20:33:54 +0200
|
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 10 Oct 2022 13:47:25 +0200
|
||||||
|
|
||||||
llvm-toolchain-14 (1:14.0.6-3) unstable; urgency=medium
|
llvm-toolchain-14 (1:14.0.6-3) unstable; urgency=medium
|
||||||
|
|
||||||
|
13
debian/rules
vendored
13
debian/rules
vendored
@ -291,6 +291,12 @@ ifeq ($(LIBUNWIND_ENABLE),yes)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
COMPILER_RT_WASM_ENABLE=yes
|
||||||
|
|
||||||
|
ifneq (,$(filter $(DEB_HOST_ARCH), arm64 armel mips64el mipsel ppc64el armhf))
|
||||||
|
COMPILER_RT_WASM_ENABLE=no
|
||||||
|
endif
|
||||||
|
|
||||||
# Do not install objects
|
# Do not install objects
|
||||||
STAGE_ALL_CMAKE_EXTRA += -DMLIR_INSTALL_AGGREGATE_OBJECTS=OFF
|
STAGE_ALL_CMAKE_EXTRA += -DMLIR_INSTALL_AGGREGATE_OBJECTS=OFF
|
||||||
|
|
||||||
@ -680,6 +686,7 @@ debian-libclc-build:
|
|||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
debian-rtlib-wasm-build:
|
debian-rtlib-wasm-build:
|
||||||
|
ifeq (${COMPILER_RT_WASM_ENABLE},yes)
|
||||||
echo "Using cmake: $(CMAKE_BIN)"
|
echo "Using cmake: $(CMAKE_BIN)"
|
||||||
for build in wasm32 wasm64; do \
|
for build in wasm32 wasm64; do \
|
||||||
mkdir -p build-compiler-rt-$$build; \
|
mkdir -p build-compiler-rt-$$build; \
|
||||||
@ -708,6 +715,9 @@ debian-rtlib-wasm-build:
|
|||||||
-DCOMPILER_RT_OS_DIR=wasi; \
|
-DCOMPILER_RT_OS_DIR=wasi; \
|
||||||
ninja -C build-compiler-rt-$$build $(NJOBS) $(VERBOSE); \
|
ninja -C build-compiler-rt-$$build $(NJOBS) $(VERBOSE); \
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
echo "Skip on this arch"
|
||||||
|
endif
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
override_dh_auto_build: debian-full-build debian-libfuzzer-build debian-libclc-build debian-rtlib-wasm-build
|
override_dh_auto_build: debian-full-build debian-libfuzzer-build debian-libclc-build debian-rtlib-wasm-build
|
||||||
@ -849,9 +859,10 @@ endif
|
|||||||
$(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/build/utils/lit/lit/*/__pycache__/
|
$(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/build/utils/lit/lit/*/__pycache__/
|
||||||
|
|
||||||
DESTDIR=$(DEB_INST) ninja $(VERBOSE) -C libclc/build install
|
DESTDIR=$(DEB_INST) ninja $(VERBOSE) -C libclc/build install
|
||||||
|
ifeq (${COMPILER_RT_WASM_ENABLE},yes)
|
||||||
DESTDIR=$(DEB_INST) ninja $(VERBOSE) -C build-compiler-rt-wasm32 install
|
DESTDIR=$(DEB_INST) ninja $(VERBOSE) -C build-compiler-rt-wasm32 install
|
||||||
DESTDIR=$(DEB_INST) ninja $(VERBOSE) -C build-compiler-rt-wasm64 install
|
DESTDIR=$(DEB_INST) ninja $(VERBOSE) -C build-compiler-rt-wasm64 install
|
||||||
|
endif
|
||||||
|
|
||||||
# Rename binaries
|
# Rename binaries
|
||||||
mkdir -p $(DEB_INST)/usr/bin/
|
mkdir -p $(DEB_INST)/usr/bin/
|
||||||
|
Loading…
Reference in New Issue
Block a user