Merge pull request #3420 from Sonicadvance1/preserve_all_3419

Fix #3419
This commit is contained in:
Mai 2024-02-10 23:24:38 -05:00 committed by GitHub
commit 780b48620b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)