[llvm] [llvm-(min-)tblgen] Avoid redundant source compilation (PR #114494)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 14 00:12:06 PST 2024


================
@@ -9,8 +9,15 @@ set(LLVM_LINK_COMPONENTS
   )
 
 add_llvm_library(LLVMTableGenBasic OBJECT EXCLUDE_FROM_ALL DISABLE_LLVM_LINK_LLVM_DYLIB
+  ARMTargetDefEmitter.cpp
+  Attributes.cpp
   CodeGenIntrinsics.cpp
+  DirectiveEmitter.cpp
+  IntrinsicEmitter.cpp
+  RISCVTargetDefEmitter.cpp
   SDNodeProperties.cpp
+  TableGen.cpp
----------------
chapuni wrote:

I suggest `TableGen.cpp` may be individual. IIRC, some cmake generators don't like `add_executable` w/o any source files.

https://github.com/llvm/llvm-project/pull/114494


More information about the llvm-commits mailing list