diff --git a/.ci/build-linux.sh b/.ci/build-linux.sh index af43e6b0ab1d..28d0d5d38e63 100755 --- a/.ci/build-linux.sh +++ b/.ci/build-linux.sh @@ -43,6 +43,7 @@ cmake .. \ -DUSE_SYSTEM_CURL=ON \ -DUSE_SDL=ON \ -DUSE_SYSTEM_FFMPEG=OFF \ + -DUSE_DISCORD_RPC=ON \ -DOpenGL_GL_PREFERENCE=LEGACY \ -DLLVM_DIR=/opt/llvm/lib/cmake/llvm \ -DSTATIC_LINK_LLVM=ON \ diff --git a/3rdparty/discord-rpc/CMakeLists.txt b/3rdparty/discord-rpc/CMakeLists.txt index cb465f33e2bf..423c2d6cfe0c 100644 --- a/3rdparty/discord-rpc/CMakeLists.txt +++ b/3rdparty/discord-rpc/CMakeLists.txt @@ -1,6 +1,8 @@ # DiscordRPC add_library(3rdparty_discordRPC INTERFACE) +check_cxx_compiler_flag("-msse -msse2 -mcx16" COMPILER_X86) + # We don't want Discord Rich Presence on the BSDs and other OSes if (USE_DISCORD_RPC AND (WIN32 OR CMAKE_SYSTEM MATCHES "Linux" OR APPLE) AND COMPILER_X86) if (WIN32 AND NOT MSVC)