forked from OSchip/llvm-project
[libc][Obvious] Do not add __NO_ to targets with FLAG__NO suffix.
This commit is contained in:
parent
cff509f33b
commit
ae5c82502e
|
@ -231,7 +231,7 @@ function(expand_flags_for_header_library target_name flags)
|
|||
|
||||
# Only target with `flag` has `.__NO_flag` target, `flag__NO` and
|
||||
# `flag__ONLY` do not.
|
||||
if(NOT "${modifier}")
|
||||
if("${modifier}" STREQUAL "")
|
||||
set(TARGET_NAME "${target_name}.__NO_${flag}")
|
||||
else()
|
||||
set(TARGET_NAME "${target_name}")
|
||||
|
|
|
@ -150,7 +150,7 @@ function(expand_flags_for_object_library target_name flags)
|
|||
|
||||
# Only target with `flag` has `.__NO_flag` target, `flag__NO` and
|
||||
# `flag__ONLY` do not.
|
||||
if(NOT "${modifier}")
|
||||
if("${modifier}" STREQUAL "")
|
||||
set(TARGET_NAME "${target_name}.__NO_${flag}")
|
||||
else()
|
||||
set(TARGET_NAME "${target_name}")
|
||||
|
@ -466,7 +466,7 @@ function(expand_flags_for_entrypoint_object target_name flags)
|
|||
|
||||
# Only target with `flag` has `.__NO_flag` target, `flag__NO` and
|
||||
# `flag__ONLY` do not.
|
||||
if(NOT "${modifier}")
|
||||
if("${modifier}" STREQUAL "")
|
||||
set(TARGET_NAME "${target_name}.__NO_${flag}")
|
||||
else()
|
||||
set(TARGET_NAME "${target_name}")
|
||||
|
|
|
@ -236,7 +236,7 @@ function(expand_flags_for_libc_unittest target_name flags)
|
|||
|
||||
# Only target with `flag` has `.__NO_flag` target, `flag__NO` and
|
||||
# `flag__ONLY` do not.
|
||||
if(NOT "${modifier}")
|
||||
if("${modifier}" STREQUAL "")
|
||||
set(TARGET_NAME "${target_name}.__NO_${flag}")
|
||||
else()
|
||||
set(TARGET_NAME "${target_name}")
|
||||
|
|
Loading…
Reference in New Issue