This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Apple Silicon support #1185
Comments
The tip of master fails at this inline assembly point:
|
Looks like this was already fixed by Catch2 upstream: catchorg/Catch2@a25c1a2 |
Not sure how the project is managing its vendored dependencies, but the build works with this patch: diff --git a/src/external/catch/catch.hpp b/src/external/catch/catch.hpp
index 099119d4..7eece27d 100644
--- a/src/external/catch/catch.hpp
+++ b/src/external/catch/catch.hpp
@@ -5461,7 +5461,11 @@ namespace Catch {
#ifdef CATCH_PLATFORM_MAC
- #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
+ #if defined(__i386__) || defined(__x86_64__)
+ #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
+ #elif defined(__aarch64__)
+ #define CATCH_TRAP() __asm__(".inst 0xd4200000")
+ #endif
#elif defined(CATCH_PLATFORM_LINUX)
// If we can use inline assembler, do it because this allows us to break The app then opens up fine, but it looks like there is something weird with the colors and the UI? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey there! Are there plans to provide Apple Silicon Sourcetrail builds at any point soon?
The text was updated successfully, but these errors were encountered: