-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40663 from bruvzg/fix-macos-arm64-build
[macOS] Fix build for ARM64.
- Loading branch information
Showing
4 changed files
with
31 additions
and
2 deletions.
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
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
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
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,18 @@ | ||
diff --git a/thirdparty/doctest/doctest.h b/thirdparty/doctest/doctest.h | ||
index 9444698286..e4fed12767 100644 | ||
--- a/thirdparty/doctest/doctest.h | ||
+++ b/thirdparty/doctest/doctest.h | ||
@@ -356,7 +356,13 @@ DOCTEST_MSVC_SUPPRESS_WARNING(26812) // Prefer 'enum class' over 'enum' | ||
#ifndef DOCTEST_BREAK_INTO_DEBUGGER | ||
// should probably take a look at https://github.com/scottt/debugbreak | ||
#ifdef DOCTEST_PLATFORM_MAC | ||
+// -- GODOT start -- | ||
+#if defined(__x86_64) || defined(__x86_64__) || defined(__amd64__) | ||
#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("int $3\n" : :) | ||
+#else | ||
+#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("brk #0"); | ||
+#endif | ||
+// -- GODOT end -- | ||
#elif DOCTEST_MSVC | ||
#define DOCTEST_BREAK_INTO_DEBUGGER() __debugbreak() | ||
#elif defined(__MINGW32__) |