Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Add check of armgcc toolchain version #192

Merged
merged 1 commit into from
Jan 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hex/cmake/util.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ function(nrf_configure_sdk_values SDK_VERSION SDK_DIRECTORY)
return()
endif()

set(ARM_GCC_TOOLCHAIN_VERSION_MIN "7.3.1")

if(GCC_VERSION VERSION_LESS "${ARM_GCC_TOOLCHAIN_VERSION_MIN}")
message(FATAL_ERROR "armgcc toolchain version is too old. Needs to be ${ARM_GCC_TOOLCHAIN_VERSION_MIN} or newer.")
endif()

set(TOOLCHAIN_PATH "${SDK_DIRECTORY}/components/toolchain/gcc")
if(EXISTS "${TOOLCHAIN_PATH}")
if(WIN32)
Expand Down