mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	[macOS] Update clang version check.
This commit is contained in:
		
							parent
							
								
									ab6c6eece8
								
							
						
					
					
						commit
						bc85da65a5
					
				
					 1 changed files with 2 additions and 8 deletions
				
			
		
							
								
								
									
										10
									
								
								SConstruct
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								SConstruct
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -696,17 +696,11 @@ elif methods.using_clang(env):
 | 
			
		|||
    # Apple LLVM versions differ from upstream LLVM version \o/, compare
 | 
			
		||||
    # in https://en.wikipedia.org/wiki/Xcode#Toolchain_versions
 | 
			
		||||
    if methods.is_apple_clang(env):
 | 
			
		||||
        if cc_version_major < 10:
 | 
			
		||||
        if cc_version_major < 16:
 | 
			
		||||
            print_error(
 | 
			
		||||
                "Detected Apple Clang version older than 10, which does not fully "
 | 
			
		||||
                "support C++17. Supported versions are Apple Clang 10 and later."
 | 
			
		||||
                "Detected Apple Clang version older than 16, supported versions are Apple Clang 16 (Xcode 16) and later."
 | 
			
		||||
            )
 | 
			
		||||
            Exit(255)
 | 
			
		||||
        elif env["debug_paths_relative"] and cc_version_major < 12:
 | 
			
		||||
            print_warning(
 | 
			
		||||
                "Apple Clang < 12 doesn't support -ffile-prefix-map, disabling `debug_paths_relative` option."
 | 
			
		||||
            )
 | 
			
		||||
            env["debug_paths_relative"] = False
 | 
			
		||||
    else:
 | 
			
		||||
        if cc_version_major < 6:
 | 
			
		||||
            print_error(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue