From fd3de84ee958e0369202fc053faa249998f4a06f Mon Sep 17 00:00:00 2001 From: Gliniak Date: Wed, 8 Jan 2025 22:27:51 +0100 Subject: [PATCH] [Premake] Fixing issues during build on Linux - Lack of AVX2 extension (should be done differently in the future) - Disable deprecated-volatile warning - Added missing override in posix EventInfo --- premake5.lua | 3 +++ src/xenia/base/premake5.lua | 4 ++++ src/xenia/base/threading_posix.cc | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index c49201f6c1..a1a129ca21 100644 --- a/premake5.lua +++ b/premake5.lua @@ -113,6 +113,9 @@ filter("platforms:Linux") "rt", }) +filter({"platforms:Linux"}) + vectorextensions("AVX2") + filter({"platforms:Linux", "kind:*App"}) linkgroups("On") diff --git a/src/xenia/base/premake5.lua b/src/xenia/base/premake5.lua index d53c34351b..d99bc7884a 100644 --- a/src/xenia/base/premake5.lua +++ b/src/xenia/base/premake5.lua @@ -8,6 +8,10 @@ project("xenia-base") links({ "fmt", }) + filter({"toolset:gcc or clang"}) + buildoptions({ + "-Wno-deprecated-volatile" + }) defines({ }) local_platform_files() diff --git a/src/xenia/base/threading_posix.cc b/src/xenia/base/threading_posix.cc index 462282d462..f72f72d6f0 100644 --- a/src/xenia/base/threading_posix.cc +++ b/src/xenia/base/threading_posix.cc @@ -905,7 +905,7 @@ class PosixEvent : public PosixConditionHandle { ~PosixEvent() override = default; void Set() override { handle_.Signal(); } void Reset() override { handle_.Reset(); } - EventInfo Query() { + EventInfo Query() override { EventInfo result{}; assert_always(); return result;