mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 00:51:42 +01:00 
			
		
		
		
	We will likely need to check clang version as well, eventually. However at the moment clang builds change too often for such check to be maintainable. Disable it for clang.
		
			
				
	
	
		
			13 lines
		
	
	
		
			490 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			490 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
#
 | 
						|
# Warn if the toolchain version doesn't match
 | 
						|
#
 | 
						|
if(NOT (${target} STREQUAL "linux" OR CMAKE_C_COMPILER_ID MATCHES "Clang"))
 | 
						|
    get_expected_ctng_version(expected_toolchain expected_gcc)
 | 
						|
    gcc_version_check("${expected_gcc}")
 | 
						|
    crosstool_version_check("${expected_toolchain}")
 | 
						|
endif()
 | 
						|
 | 
						|
if(NOT ${target} STREQUAL "linux" AND CMAKE_C_COMPILER_ID MATCHES "Clang")
 | 
						|
    message(WARNING "Building ESP-IDF with clang is an experimental feature and is not yet officially supported.")
 | 
						|
endif()
 |