diff options
-rw-r--r-- | zephyr/cmake/compiler/gcc/target.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zephyr/cmake/compiler/gcc/target.cmake b/zephyr/cmake/compiler/gcc/target.cmake index 39e5839eba..5bdb6fc5f6 100644 --- a/zephyr/cmake/compiler/gcc/target.cmake +++ b/zephyr/cmake/compiler/gcc/target.cmake @@ -5,3 +5,10 @@ # Zephyr cmake system looks into ${TOOLCHAIN_ROOT}, but we just send # this out to the copy in ${ZEPHYR_BASE}. include("${ZEPHYR_BASE}/cmake/compiler/gcc/target.cmake") + +# no_libgcc support has been removed in upstream zephyr, but we still +# depend on it. This ugly hack emulates what it used to do by undoing +# what some of target.cmake does. +if(no_libgcc) + list(REMOVE_ITEM TOOLCHAIN_LIBS gcc) +endif() |