Makefile.inc (723e60a278b16fc4411cb4d9f201cb3ba26108cf) | Makefile.inc (fcc5fa091ebb89db48d8fbda9b74c25bd44357b8) |
---|---|
1.include <bsd.compiler.mk> 2 3CRTARCH= ${MACHINE_CPUARCH:C/amd64/x86_64/:C/powerpc/ppc/} 4 5CRTSRC= ${SRCTOP}/contrib/llvm-project/compiler-rt/lib/builtins 6 7.PATH: ${CRTSRC}/${CRTARCH} 8.PATH: ${CRTSRC} --- 219 unchanged lines hidden (view full) --- 228.if ${MACHINE_CPUARCH} != "arm" 229SRCF+= comparedf2 230SRCF+= comparesf2 231.endif 232 233# Helper to reduce complexity of _Float16 and __bf16 statements below. 234.if ${MACHINE_CPUARCH} == "aarch64" || \ 235 ${MACHINE_CPUARCH} == "amd64" || \ | 1.include <bsd.compiler.mk> 2 3CRTARCH= ${MACHINE_CPUARCH:C/amd64/x86_64/:C/powerpc/ppc/} 4 5CRTSRC= ${SRCTOP}/contrib/llvm-project/compiler-rt/lib/builtins 6 7.PATH: ${CRTSRC}/${CRTARCH} 8.PATH: ${CRTSRC} --- 219 unchanged lines hidden (view full) --- 228.if ${MACHINE_CPUARCH} != "arm" 229SRCF+= comparedf2 230SRCF+= comparesf2 231.endif 232 233# Helper to reduce complexity of _Float16 and __bf16 statements below. 234.if ${MACHINE_CPUARCH} == "aarch64" || \ 235 ${MACHINE_CPUARCH} == "amd64" || \ |
236 ${MACHINE_CPUARCH} == "arm" || \ | |
237 (${MACHINE_CPUARCH} == "i386" && !empty(MACHINE_CPU:Msse2)) 238CRT_COMMON_F16_ARCH=t 239.endif 240 241# 242# _Float16 support, only on some architectures, and with certain compiler 243# versions. 244# 245.if ((${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000) && \ | 236 (${MACHINE_CPUARCH} == "i386" && !empty(MACHINE_CPU:Msse2)) 237CRT_COMMON_F16_ARCH=t 238.endif 239 240# 241# _Float16 support, only on some architectures, and with certain compiler 242# versions. 243# 244.if ((${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000) && \ |
246 (defined(CRT_COMMON_F16_ARCH) || ${MACHINE_CPUARCH} == "riscv")) || \ | 245 (defined(CRT_COMMON_F16_ARCH) || \ 246 ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "riscv")) || \ |
247 ((${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120000) && \ 248 (defined(CRT_COMMON_F16_ARCH))) 249CFLAGS+= -DCOMPILER_RT_HAS_FLOAT16 250.endif 251 252# 253# __bf16 support, only on some architectures, and with certain compiler 254# versions. --- 47 unchanged lines hidden --- | 247 ((${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120000) && \ 248 (defined(CRT_COMMON_F16_ARCH))) 249CFLAGS+= -DCOMPILER_RT_HAS_FLOAT16 250.endif 251 252# 253# __bf16 support, only on some architectures, and with certain compiler 254# versions. --- 47 unchanged lines hidden --- |