Skip to content

Commit

Permalink
[Premake] Fixing issues during build on Linux
Browse files Browse the repository at this point in the history
- Lack of AVX2 extension (should be done differently in the future)
- Disable deprecated-volatile warning
- Added missing override in posix EventInfo
  • Loading branch information
Gliniak committed Jan 8, 2025
1 parent 4620fa9 commit fd3de84
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ filter("platforms:Linux")
"rt",
})

filter({"platforms:Linux"})
vectorextensions("AVX2")

filter({"platforms:Linux", "kind:*App"})
linkgroups("On")

Expand Down
4 changes: 4 additions & 0 deletions src/xenia/base/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ project("xenia-base")
links({
"fmt",
})
filter({"toolset:gcc or clang"})
buildoptions({
"-Wno-deprecated-volatile"
})
defines({
})
local_platform_files()
Expand Down
2 changes: 1 addition & 1 deletion src/xenia/base/threading_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ class PosixEvent : public PosixConditionHandle<Event> {
~PosixEvent() override = default;
void Set() override { handle_.Signal(); }
void Reset() override { handle_.Reset(); }
EventInfo Query() {
EventInfo Query() override {
EventInfo result{};
assert_always();
return result;
Expand Down

0 comments on commit fd3de84

Please sign in to comment.