diff options
| author | tnn <tnn@NetBSD.org> | 2022-07-30 03:12:00 +0000 |
|---|---|---|
| committer | tnn <tnn@NetBSD.org> | 2022-07-30 03:12:00 +0000 |
| commit | 76caa587084dc79fa2c65e3c42b464c4846db040 (patch) | |
| tree | 523cdd3f6bd5695b817c0328280c2bc92c11bfd0 /sys/modules | |
| parent | 12c23c11e7f31beb27a43344cb1fffb0a98f471b (diff) | |
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.
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/amdgpu/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/modules/amdgpu/Makefile b/sys/modules/amdgpu/Makefile index a58a6330d01..3e17b478343 100644 --- a/sys/modules/amdgpu/Makefile +++ b/sys/modules/amdgpu/Makefile @@ -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 |
