Skip to content

Commit

Permalink
cmake: remove ZEPHYR_GCC_VARIANT variable
Browse files Browse the repository at this point in the history
ZEPHYR_GCC_VARIANT was deprecated in zephyrproject-rtos#6139 in 02/2018

Removing the variable now.

Signed-off-by: Torsten Rasmussen <[email protected]>
  • Loading branch information
tejlmand committed Feb 4, 2021
1 parent 59365f5 commit ca1ae3d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cmake/generic_toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ but Zephyr ignores flags from the environment. Use 'cmake -DEXTRA_${var}=$ENV{${
endif()
endforeach()

# Until we completely deprecate it
if(NOT DEFINED ENV{ZEPHYR_TOOLCHAIN_VARIANT})
if(DEFINED ENV{ZEPHYR_GCC_VARIANT})
message(WARNING "ZEPHYR_GCC_VARIANT is deprecated, please use ZEPHYR_TOOLCHAIN_VARIANT instead")
set(ZEPHYR_TOOLCHAIN_VARIANT $ENV{ZEPHYR_GCC_VARIANT})
endif()
endif()

if(NOT ZEPHYR_TOOLCHAIN_VARIANT)
if(DEFINED ENV{ZEPHYR_TOOLCHAIN_VARIANT})
set(ZEPHYR_TOOLCHAIN_VARIANT $ENV{ZEPHYR_TOOLCHAIN_VARIANT})
Expand Down

0 comments on commit ca1ae3d

Please sign in to comment.