mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-12-01 18:24:24 +00:00
Fix __builtin_cpu_supports(aes) on GCC 9 and earlier
This commit is contained in:
1 parent
8fb2c72ca1
commit
8125d2194b
2 files changed
+6
-5
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user