summaryrefslogtreecommitdiffstats
path: root/externals
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-06-12 23:14:27 +0200
committerLiam <byteslice@airmail.cc>2022-06-14 02:09:32 +0200
commitebecdd3a7458dd5a353524dc161f4050d019b7be (patch)
tree0328113f3ceef6a4ccbfd6a98d121cd3c03e1626 /externals
parentcommon/assert: add unlikely (diff)
downloadyuzu-ebecdd3a7458dd5a353524dc161f4050d019b7be.tar
yuzu-ebecdd3a7458dd5a353524dc161f4050d019b7be.tar.gz
yuzu-ebecdd3a7458dd5a353524dc161f4050d019b7be.tar.bz2
yuzu-ebecdd3a7458dd5a353524dc161f4050d019b7be.tar.lz
yuzu-ebecdd3a7458dd5a353524dc161f4050d019b7be.tar.xz
yuzu-ebecdd3a7458dd5a353524dc161f4050d019b7be.tar.zst
yuzu-ebecdd3a7458dd5a353524dc161f4050d019b7be.zip
Diffstat (limited to 'externals')
-rw-r--r--externals/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 64361de5f..bd01f4c4d 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -40,6 +40,11 @@ target_include_directories(mbedtls PUBLIC ./mbedtls/include)
add_library(microprofile INTERFACE)
target_include_directories(microprofile INTERFACE ./microprofile)
+# GCC bugs
+if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND MINGW)
+ target_compile_options(microprofile INTERFACE "-Wno-array-bounds")
+endif()
+
# libusb
if (NOT LIBUSB_FOUND OR YUZU_USE_BUNDLED_LIBUSB)
add_subdirectory(libusb)