mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 16:32:18 +01:00 
			
		
		
		
	meson: only add -fno-strict-aliasing if supported by compiler
Fixes warning spam on MSVC builds. https://bugzilla.gnome.org/show_bug.cgi?id=791622
This commit is contained in:
		| @@ -65,7 +65,9 @@ add_project_arguments('-D_GNU_SOURCE', language: 'c') | ||||
|  | ||||
| # Disable strict aliasing; | ||||
| # see https://bugzilla.gnome.org/show_bug.cgi?id=791622 | ||||
| add_project_arguments('-fno-strict-aliasing', language: 'c') | ||||
| if cc.has_argument('-fno-strict-aliasing') | ||||
|   add_project_arguments('-fno-strict-aliasing', language: 'c') | ||||
| endif | ||||
|  | ||||
| ######################## | ||||
| # Configuration begins # | ||||
|   | ||||
		Reference in New Issue
	
	Block a user