Fix __builtin_cpu_supports(aes) on GCC 9 and earlier

This commit is contained in:
Cameron Gutman committed 2024-02-17 13:23:06 -06:00
1 parent 8fb2c72ca1
commit 8125d2194b
2 files changed
+6 -5

No files matched your search

+5
View File
@@ -98,6 +98,11 @@ if (HAVE_GETAUXVAL)
list(APPEND MOONLIGHT_DEFINITIONS HAVE_GETAUXVAL)
endif()
check_c_source_compiles("int main(void) { return __builtin_cpu_supports(\"aes\"); }" HAVE_BICS_AES)
if (HAVE_BICS_AES)
list(APPEND MOONLIGHT_DEFINITIONS HAVE_BICS_AES)
endif()
if (CEC_FOUND)
list(APPEND MOONLIGHT_DEFINITIONS HAVE_LIBCEC)
list(APPEND MOONLIGHT_OPTIONS CEC)