mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:00:04 +00:00 
			
		
		
		
	Fixes for address sanitizer on Windows
This commit is contained in:
		
							parent
							
								
									03f4b486d6
								
							
						
					
					
						commit
						f9d621d940
					
				
					 9 changed files with 10 additions and 10 deletions
				
			
		|  | @ -510,11 +510,11 @@ endif() | |||
| # Address Sanitizer options | ||||
| if (SCWX_ADDRESS_SANITIZER) | ||||
|     target_compile_options(scwx-qt PRIVATE | ||||
|         $<$<CXX_COMPILER_ID:MSVC>:/fsanitize=address> | ||||
|         $<$<CXX_COMPILER_ID:MSVC>:/fsanitize=address /EHsc /D_DISABLE_STRING_ANNOTATION /D_DISABLE_VECTOR_ANNOTATION> | ||||
|         $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-fsanitize=address -fsanitize-recover=address> | ||||
|     ) | ||||
|     target_compile_options(supercell-wx PRIVATE | ||||
|         $<$<CXX_COMPILER_ID:MSVC>:/fsanitize=address> | ||||
|         $<$<CXX_COMPILER_ID:MSVC>:/fsanitize=address /EHsc /D_DISABLE_STRING_ANNOTATION /D_DISABLE_VECTOR_ANNOTATION> | ||||
|         $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-fsanitize=address -fsanitize-recover=address> | ||||
|     ) | ||||
|     target_link_options(supercell-wx PRIVATE | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ | |||
| #include <map> | ||||
| #include <string> | ||||
| 
 | ||||
| #ifdef WIN32 | ||||
| #ifdef _WIN32 | ||||
| #   include <WinSock2.h> | ||||
| #else | ||||
| #   include <arpa/inet.h> | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ | |||
| #include <scwx/awips/message.hpp> | ||||
| #include <scwx/wsr88d/rda/level2_message_header.hpp> | ||||
| 
 | ||||
| #ifdef WIN32 | ||||
| #ifdef _WIN32 | ||||
| #   include <WinSock2.h> | ||||
| #else | ||||
| #   include <arpa/inet.h> | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
| #include <sstream> | ||||
| #include <string> | ||||
| 
 | ||||
| #ifdef WIN32 | ||||
| #ifdef _WIN32 | ||||
| #   include <WinSock2.h> | ||||
| #else | ||||
| #   include <arpa/inet.h> | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ | |||
| #include <cmath> | ||||
| #include <cstring> | ||||
| 
 | ||||
| #ifdef WIN32 | ||||
| #ifdef _WIN32 | ||||
| #   include <WinSock2.h> | ||||
| #else | ||||
| #   include <arpa/inet.h> | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
| #include <istream> | ||||
| #include <string> | ||||
| 
 | ||||
| #ifdef WIN32 | ||||
| #ifdef _WIN32 | ||||
| #   include <WinSock2.h> | ||||
| #else | ||||
| #   include <arpa/inet.h> | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
| #include <sstream> | ||||
| #include <string> | ||||
| 
 | ||||
| #ifdef WIN32 | ||||
| #ifdef _WIN32 | ||||
| #   include <WinSock2.h> | ||||
| #else | ||||
| #   include <arpa/inet.h> | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
| #include <istream> | ||||
| #include <string> | ||||
| 
 | ||||
| #ifdef WIN32 | ||||
| #ifdef _WIN32 | ||||
| #   include <WinSock2.h> | ||||
| #else | ||||
| #   include <arpa/inet.h> | ||||
|  |  | |||
|  | @ -294,7 +294,7 @@ set_target_properties(wxdata PROPERTIES CXX_STANDARD 20 | |||
| # Address Sanitizer options | ||||
| if (SCWX_ADDRESS_SANITIZER) | ||||
|     target_compile_options(wxdata PRIVATE | ||||
|         $<$<CXX_COMPILER_ID:MSVC>:/fsanitize=address> | ||||
|         $<$<CXX_COMPILER_ID:MSVC>:/fsanitize=address /EHsc /D_DISABLE_STRING_ANNOTATION /D_DISABLE_VECTOR_ANNOTATION> | ||||
|         $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-fsanitize=address -fsanitize-recover=address> | ||||
|     ) | ||||
| endif() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat