Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTue Ly <lntue@google.com>2022-06-30 17:44:08 +0300
committerTue Ly <lntue@google.com>2022-06-30 17:45:59 +0300
commitae5c82502eafd593f265df425b538c3195c082de (patch)
treecce43af2dd9dcde3bec6b05fba2d532090f31e17 /libc/cmake/modules/LLVMLibCObjectRules.cmake
parentcff509f33ba44fd1d0d9b579791dad527d50068e (diff)
[libc][Obvious] Do not add __NO_ to targets with FLAG__NO suffix.
Diffstat (limited to 'libc/cmake/modules/LLVMLibCObjectRules.cmake')
-rw-r--r--libc/cmake/modules/LLVMLibCObjectRules.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake
index 496c8ba97a93..760a8cb9e27e 100644
--- a/libc/cmake/modules/LLVMLibCObjectRules.cmake
+++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake
@@ -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}")