Skip to content

Commit e893c9d

Browse files
committed
Bug#30344896: UPDATE FREEBSD COMPILER VERSION CHECK
Update the CMake compiler version check for FreeBSD to check for Clang 6.0+. This is the compiler that comes with FreeBSD 12 which is the version we support and test. Version checks can still be disabled using -DFORCE_UNSUPPORTED_COMPILER=1 Change-Id: I54417fc8e4bb8ffd5497caa81fa9d1e64a5a6e77
1 parent 09366cc commit e893c9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmake/os/FreeBSD.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ INCLUDE(CheckCSourceRuns)
2626

2727
SET(FREEBSD 1)
2828

29-
# We require at least Clang 4.0.
29+
# We require at least Clang 6.0 (FreeBSD 12).
3030
IF(NOT FORCE_UNSUPPORTED_COMPILER)
3131
IF(MY_COMPILER_IS_CLANG)
3232
CHECK_C_SOURCE_RUNS("
3333
int main()
3434
{
35-
return (__clang_major__ < 4);
35+
return (__clang_major__ < 6);
3636
}" HAVE_SUPPORTED_CLANG_VERSION)
3737
IF(NOT HAVE_SUPPORTED_CLANG_VERSION)
38-
MESSAGE(FATAL_ERROR "Clang 4.0 or newer is required!")
38+
MESSAGE(FATAL_ERROR "Clang 6.0 or newer is required!")
3939
ENDIF()
4040
ELSEIF(MY_COMPILER_IS_GNU)
4141
EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} -dumpversion

0 commit comments

Comments
 (0)