mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 14:09:33 +01:00 
			
		
		
		
	Fix for macOS on ARM
This commit is contained in:
		
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							0f05c034c2
						
					
				
				
					commit
					bad3c93049
				
			@@ -17,7 +17,11 @@ namespace Catch {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#ifdef CATCH_PLATFORM_MAC
 | 
					#ifdef CATCH_PLATFORM_MAC
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    #if defined(__i386__) || defined(__x86_64__)
 | 
				
			||||||
        #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
 | 
					        #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
 | 
				
			||||||
 | 
					    #elif defined(__aarch64__)
 | 
				
			||||||
 | 
					        #define CATCH_TRAP()  __asm__(".inst 0xd4200000")
 | 
				
			||||||
 | 
					    #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#elif defined(CATCH_PLATFORM_IPHONE)
 | 
					#elif defined(CATCH_PLATFORM_IPHONE)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user