Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.compiler.mk
Show First 20 Lines • Show All 249 Lines • ▼ Show 20 Lines | |||||
${X_}COMPILER_FEATURES+= compressed-debug | ${X_}COMPILER_FEATURES+= compressed-debug | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${${X_}COMPILER_TYPE} == "clang" && ${${X_}COMPILER_VERSION} >= 100000 || \ | .if ${${X_}COMPILER_TYPE} == "clang" && ${${X_}COMPILER_VERSION} >= 100000 || \ | ||||
(${${X_}COMPILER_TYPE} == "gcc" && ${${X_}COMPILER_VERSION} >= 80100) | (${${X_}COMPILER_TYPE} == "gcc" && ${${X_}COMPILER_VERSION} >= 80100) | ||||
${X_}COMPILER_FEATURES+= fileprefixmap | ${X_}COMPILER_FEATURES+= fileprefixmap | ||||
.endif | .endif | ||||
# Architecture specific features | |||||
emaste: If this is the case `retpoline` should be here too, but instead I think we could just drop this… | |||||
.if (${${X_}COMPILER_TYPE} == "clang" && ${${X_}COMPILER_VERSION} >= 130000) || \ | |||||
(${${X_}COMPILER_TYPE} == "gcc" && ${${X_}COMPILER_VERSION} >= 90000) | |||||
# AArch64 sha512 intrinsics are supported (and have been tested) in | |||||
# clang 13 and gcc 9. | |||||
${X_}COMPILER_FEATURES+= aarch64-sha512 | |||||
.endif | |||||
.else | .else | ||||
# Use CC's values | # Use CC's values | ||||
X_COMPILER_TYPE= ${COMPILER_TYPE} | X_COMPILER_TYPE= ${COMPILER_TYPE} | ||||
X_COMPILER_VERSION= ${COMPILER_VERSION} | X_COMPILER_VERSION= ${COMPILER_VERSION} | ||||
X_COMPILER_FREEBSD_VERSION= ${COMPILER_FREEBSD_VERSION} | X_COMPILER_FREEBSD_VERSION= ${COMPILER_FREEBSD_VERSION} | ||||
X_COMPILER_FEATURES= ${COMPILER_FEATURES} | X_COMPILER_FEATURES= ${COMPILER_FEATURES} | ||||
X_COMPILER_RESOURCE_DIR= ${COMPILER_RESOURCE_DIR} | X_COMPILER_RESOURCE_DIR= ${COMPILER_RESOURCE_DIR} | ||||
.endif # ${cc} == "CC" || (${cc} == "XCC" && ${XCC} != ${CC}) | .endif # ${cc} == "CC" || (${cc} == "XCC" && ${XCC} != ${CC}) | ||||
Show All 17 Lines |
If this is the case retpoline should be here too, but instead I think we could just drop this comment, list aarch64-sha512 in the list at line 22, and add a MD annotation there.