Skip to content

Commit fe941af

Browse files
committed
catch the case that PICO_CLIB is not set
1 parent 465dff2 commit fe941af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/preload/toolchains/util/pico_arm_clang_common.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ list(APPEND CMAKE_TRY_COMPILE_PLATFORM_VARIABLES PICO_CLIB)
4545

4646
set(_CLANG_RUNTIMES_DIR "${PICO_COMPILER_DIR}/../lib/clang-runtimes")
4747
set(_PICO_CLIB_PATH "${_CLANG_RUNTIMES_DIR}/arm-none-eabi")
48-
if(PICO_CLIB STREQUAL "" OR PICO_CLIB STREQUAL "newlib")
48+
49+
if(NOT PICO_CLIB OR PICO_CLIB STREQUAL "" OR PICO_CLIB STREQUAL "newlib")
4950
# newlib is 1st class choice
5051
if(EXISTS "${_CLANG_RUNTIMES_DIR}/newlib/arm-none-eabi")
5152
set(_PICO_CLIB_PATH "${_CLANG_RUNTIMES_DIR}/newlib/arm-none-eabi")

0 commit comments

Comments
 (0)