diff --git a/runtimes/cmake/Modules/HandleLibC.cmake b/runtimes/cmake/Modules/HandleLibC.cmake index aa076441345d..9b6749dd2615 100644 --- a/runtimes/cmake/Modules/HandleLibC.cmake +++ b/runtimes/cmake/Modules/HandleLibC.cmake @@ -10,6 +10,10 @@ include_guard(GLOBAL) +if(TARGET runtimes-libc-headers) + return() +endif() + set(RUNTIMES_SUPPORTED_C_LIBRARIES system llvm-libc picolibc newlib) set(RUNTIMES_USE_LIBC "system" CACHE STRING "Specify C library to use. Supported values are ${RUNTIMES_SUPPORTED_C_LIBRARIES}.") if (NOT "${RUNTIMES_USE_LIBC}" IN_LIST RUNTIMES_SUPPORTED_C_LIBRARIES)