Module Name: src
Committed By: tnn
Date: Sat Jul 30 03:12:00 UTC 2022
Modified Files:
src/sys/modules/amdgpu: Makefile
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/modules/amdgpu/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/modules/amdgpu/Makefile
diff -u src/sys/modules/amdgpu/Makefile:1.2 src/sys/modules/amdgpu/Makefile:1.3
--- src/sys/modules/amdgpu/Makefile:1.2 Sun Jul 24 20:05:00 2022
+++ src/sys/modules/amdgpu/Makefile Sat Jul 30 03:12:00 2022
@@ -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 @@ MKLDSCRIPT=yes
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