Sat Jul 30 03:12:00 2022 UTC ()
amdgpu: don't set -mhard-float for clang

clang complains that the option has no effect and it generates hard
float instructions without the option. soft-float not really supported
on x86_64 with clang from what I can tell.


(tnn)
diff -r1.2 -r1.3 src/sys/modules/amdgpu/Makefile

cvs diff -r1.2 -r1.3 src/sys/modules/amdgpu/Makefile (expand / switch to context diff)
--- src/sys/modules/amdgpu/Makefile 2022/07/24 20:05:00 1.2
+++ src/sys/modules/amdgpu/Makefile 2022/07/30 03:12:00 1.3
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2022/07/24 20:05:00 riastradh Exp $
+# $NetBSD: Makefile,v 1.3 2022/07/30 03:12:00 tnn Exp $
 
 .include "../Makefile.inc"
 .include "../drmkms/Makefile.inc"
@@ -10,7 +10,7 @@
 WARNS=	3
 
 .if ${MACHINE_ARCH} == "x86_64"
-COPTS.amdgpu_float+=	-mhard-float -msse -msse2
+COPTS.amdgpu_float+=	${${ACTIVE_CC} == "gcc" :? -mhard-float :} -msse -msse2
 .elif !empty(MACHINE_ARCH:Maarch64*)
 COPTS.amdgpu_float+=	-march=armv8-a
 .endif