[libc-commits] [PATCH] D76271: [libc] Add a new rule `add_object`.

Alex Brachet via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Mar 17 01:34:38 PDT 2020


abrachet added a comment.

Could you show how you are using this? I have tried like:

  add_object(
    special
    SRC
      special.cpp
    COMPILE_OPTIONS
      -Wframe-larger-than=0
  )
  
  add_entrypoint_object(
    entrypoint
    SRCS
      entrypoint.cpp
    HDRS
       entrypoint.h
    DEPENDS
       special
  )   

Doesn't work, entrypoint doesn't link against special.o



================
Comment at: libc/cmake/modules/LLVMLibCRules.cmake:112
+
+  add_library(
+    ${target_name}
----------------
Won't `add_library` compile using `CMAKE_CXX_FLAGS`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76271





More information about the libc-commits mailing list