[libc-commits] [PATCH] D157404: [libc] Support poky system

Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Aug 9 06:42:48 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG860d38bf5747: [libc] Support poky system (authored by Mikhail R. Gadelha <mikhail at igalia.com>).

Changed prior to commit:
  https://reviews.llvm.org/D157404?vs=548240&id=548602#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157404/new/

https://reviews.llvm.org/D157404

Files:
  libc/cmake/modules/LLVMLibCArchitectures.cmake


Index: libc/cmake/modules/LLVMLibCArchitectures.cmake
===================================================================
--- libc/cmake/modules/LLVMLibCArchitectures.cmake
+++ 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")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157404.548602.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230809/777dd635/attachment.bin>


More information about the libc-commits mailing list