aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-10-14 12:28:48 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-10-14 12:28:48 +0000
commita31993fece39b32ff45e7ef77c1b6e65ff832e37 (patch)
tree612172b6f2a2a1ed77885b5ed93b758b7f3b2d0a
parent6e4162c60c8dc2647bcfa512b889934806939ce8 (diff)
downloadsrc-a31993fece39b32ff45e7ef77c1b6e65ff832e37.tar.gz
src-a31993fece39b32ff45e7ef77c1b6e65ff832e37.zip
Don't build the malo module with clang 10
Compiling it with LLVM 10 triggers https://bugs.llvm.org/show_bug.cgi?id=44351 While LLVM 11 is the default compiler, I regularly build with CROSS_TOOLCHAIN=llvm10 or use system packages for clang on Linux/macOS and those have not been updated to 11 yet.
Notes
Notes: svn path=/head/; revision=366698
-rw-r--r--sys/modules/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 5ebc042fb827..e7d80ab5507f 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -224,7 +224,7 @@ SUBDIR= \
mac_seeotheruids \
mac_stub \
mac_test \
- malo \
+ ${_malo} \
md \
mdio \
mem \
@@ -804,6 +804,12 @@ _bcm283x_clkman= bcm283x_clkman
_bcm283x_pwm= bcm283x_pwm
.endif
+.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000)
+# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11:
+# https://bugs.llvm.org/show_bug.cgi?id=44351
+_malo= malo
+.endif
+
SUBDIR+=${MODULES_EXTRA}
.for reject in ${WITHOUT_MODULES}