diff --git a/libc/cmake/modules/LLVMLibCArchitectures.cmake b/libc/cmake/modules/LLVMLibCArchitectures.cmake --- a/libc/cmake/modules/LLVMLibCArchitectures.cmake +++ b/libc/cmake/modules/LLVMLibCArchitectures.cmake @@ -163,6 +163,12 @@ set(LIBC_TARGET_OS_IS_BAREMETAL TRUE) elseif(LIBC_TARGET_OS STREQUAL "linux") set(LIBC_TARGET_OS_IS_LINUX TRUE) +elseif(LIBC_TARGET_OS STREQUAL "poky") + # poky are ustom Linux-base systems created by yocto. Since these are Linux + # images, we change the LIBC_TARGET_OS to linux. This define is used to + # include the right directories during compilation. + set(LIBC_TARGET_OS_IS_LINUX TRUE) + set(LIBC_TARGET_OS "linux") elseif(LIBC_TARGET_OS STREQUAL "darwin") set(LIBC_TARGET_OS_IS_DARWIN TRUE) elseif(LIBC_TARGET_OS STREQUAL "windows")