Control: tags -1 + patch

fails on the experimental buildd as well
  [ Matthias Klose ]
  * Consolidate the build flags for the wasm builds.

--- llvm-toolchain-17-17.0.0~+rc4/debian/rules	2023-09-12 08:51:38.000000000 +0200
+++ llvm-toolchain-17-17.0.0~+rc4/debian/rules	2023-09-12 15:00:52.000000000 +0200
@@ -821,8 +821,8 @@
 	touch $@
 
 # Remove some new flags introduced by dpkg 1.22.0;
-STAGE_2_WASM_CFLAGS := $(shell echo $(STAGE_2_CFLAGS) | sed -e "s/-fcf-protection//g" -e "s/-mbranch-protection=standard//g")
-STAGE_2_WASM_CXXFLAGS := $(shell echo $(STAGE_2_CXXFLAGS) | sed -e "s/-fcf-protection//g" -e "s/-mbranch-protection=standard//g")
+STAGE_2_WASM_CFLAGS := $(filter-out -march=% -mfpu=% -fcf-protection% -mbranch-protection%, $(STAGE_2_CFLAGS))
+STAGE_2_WASM_CXXFLAGS := $(filter-out -march=% -mfpu=% -fcf-protection% -mbranch-protection%, $(STAGE_2_CXXFLAGS))
 
 build-wasm/compiler-rt-%: cpu = $(@:build-wasm/compiler-rt-%=%)
 build-wasm/compiler-rt-%:

Reply via email to