fix pika target detection

This commit is contained in:
Ward from fusion-voyager-3 2024-07-26 22:40:37 +03:00
parent bf3ac4ab73
commit 700011a987
2 changed files with 2144 additions and 2 deletions

2142
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

4
debian/rules vendored
View File

@ -1,12 +1,12 @@
#!/usr/bin/make -f
export PIKA_BUILD_ARCH = $(shell cat pika-build-arch)
export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch)
export PATH := $(PATH):/root/.cargo/bin
override_dh_prep:
# amd64 build prep
ifeq (amd64-v3,$(PIKA_BUILD_ARCH))
export RUSTFLAGS = "-C target-cpu=x86-64-v3"
export RUSTFLAGS = -C target-cpu=x86-64-v3 -C opt-level=3 -C lto=fat -C embed-bitcode -C codegen-units=1
endif
%: