diff options
author | Siva Chandra Reddy <sivachandra@google.com> | 2021-02-24 18:22:58 +0300 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@google.com> | 2021-02-24 19:59:55 +0300 |
commit | 6628387c9a0e48355638c287e7111d7c400e4926 (patch) | |
tree | 97e8678bbfe2cb4eb58a0ef8e22c4f211aeced2e /libc/cmake/modules/LLVMLibCObjectRules.cmake | |
parent | 5f5416e1c4b418d59f7f944060c8a39ced2189a0 (diff) |
[libc][NFC] Exclude few targets from the `all` target.
Diffstat (limited to 'libc/cmake/modules/LLVMLibCObjectRules.cmake')
-rw-r--r-- | libc/cmake/modules/LLVMLibCObjectRules.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake index 93f772d93bb2..9afbedcd0c9b 100644 --- a/libc/cmake/modules/LLVMLibCObjectRules.cmake +++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake @@ -25,6 +25,7 @@ function(add_object_library target_name) get_fq_target_name(${target_name} fq_target_name) add_library( ${fq_target_name} + EXCLUDE_FROM_ALL OBJECT ${ADD_OBJECT_SRCS} ${ADD_OBJECT_HDRS} @@ -157,6 +158,7 @@ function(add_entrypoint_object target_name) ${internal_target_name} # TODO: We don't need an object library for internal consumption. # A future change should switch this to a normal static library. + EXCLUDE_FROM_ALL OBJECT ${ADD_ENTRYPOINT_OBJ_SRCS} ${ADD_ENTRYPOINT_OBJ_HDRS} @@ -169,6 +171,7 @@ function(add_entrypoint_object target_name) ${fq_target_name} # We want an object library as the objects will eventually get packaged into # an archive (like libc.a). + EXCLUDE_FROM_ALL OBJECT ${ADD_ENTRYPOINT_OBJ_SRCS} ${ADD_ENTRYPOINT_OBJ_HDRS} @@ -268,6 +271,7 @@ function(add_redirector_object target_name) add_library( ${target_name} + EXCLUDE_FROM_ALL OBJECT ${REDIRECTOR_OBJECT_SRC} ) |