Skip to content

Commit

Permalink
Merge pull request #3420 from Sonicadvance1/preserve_all_3419
Browse files Browse the repository at this point in the history
Fix #3419
  • Loading branch information
lioncash authored Feb 11, 2024
2 parents df3d693 + 4a0878f commit 780b486
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FEXCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ set(CMAKE_REQUIRED_FLAGS "-std=c++11 -Wattributes -Werror=attributes")
check_cxx_source_compiles(
"
__attribute__((preserve_all))
void Testy() {
int Testy(int a, int b, int c, int d, int e, int f) {
return a + b + c + d + e + f;
}
int main() {
return 0;
return Testy(0, 1, 2, 3, 4, 5);
}"
HAS_CLANG_PRESERVE_ALL)
unset(CMAKE_REQUIRED_FLAGS)
Expand Down

0 comments on commit 780b486

Please sign in to comment.