-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
angleproject: try to fix the build with clangarm64
mingw-w64 doesn't have _ReadStatusReg, so use inline asm
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- SwiftShader/src/System/Timer.cpp.orig 2023-07-13 18:12:10.770133700 +0200 | ||
+++ SwiftShader/src/System/Timer.cpp 2023-07-13 18:16:31.000139000 +0200 | ||
@@ -60,7 +60,13 @@ | ||
{ | ||
#if defined(_WIN32) | ||
# if defined(_M_ARM64) | ||
+# if defined(__MINGW32__) | ||
+ int64_t value; | ||
+ __asm__ volatile("mrs %x0, PMCCNTR_EL0" : "=r" (value)); | ||
+ return value; | ||
+# else | ||
return _ReadStatusReg(ARM64_PMCCNTR_EL0); | ||
+# endif | ||
# else | ||
return __rdtsc(); | ||
# endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters