Skip to content

Commit 9a42cad

Browse files
MingcongBaiZeno-sole
authored andcommitted
fix: disable LSX for loong64
-mlsx is enabled globally but is not yet available in LLVM 17. Loongson will submit a backport later and we can enable this then.
1 parent 430e6df commit 9a42cad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

debian/rules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ else
7474
export DEB_CFLAGS_MAINT_STRIP = -g -O2
7575
export DEB_CXXFLAGS_MAINT_STRIP = -g -O2
7676
endif
77+
78+
ifeq ($(DEB_BUILD_ARCH),loong64)
79+
# FIXME: -mlsx is not yet available for Clang.
80+
export DEB_CFLAGS_MAINT_STRIP = -mlsx
81+
export DEB_CXXFLAGS_MAINT_STRIP = -mlsx
82+
endif
83+
7784
include /usr/share/dpkg/buildflags.mk
7885
7986
# We use a stage2 build. It means that a first clang is built using gcc,

0 commit comments

Comments
 (0)