[libc][NFC] Exclude few targets from the all target.

This commit is contained in:
Siva Chandra Reddy 2021-02-24 07:22:58 -08:00
parent 5f5416e1c4
commit 6628387c9a
2 changed files with 5 additions and 0 deletions

View File

@ -134,6 +134,7 @@ function(add_redirector_library target_name)
# prevent DT_NEEDED on C++ runtime.
add_library(
${target_name}
EXCLUDE_FROM_ALL
SHARED
${obj_files}
)

View File

@ -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}
)