[compiler-rt] ed7086a - [CMake] Fix the option declaration
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 22 11:59:33 PDT 2021
Author: Petr Hosek
Date: 2021-06-22T11:58:26-07:00
New Revision: ed7086ad46f99f639b85ea6c8bda7c1a71be7c53
URL: https://github.com/llvm/llvm-project/commit/ed7086ad46f99f639b85ea6c8bda7c1a71be7c53
DIFF: https://github.com/llvm/llvm-project/commit/ed7086ad46f99f639b85ea6c8bda7c1a71be7c53.diff
LOG: [CMake] Fix the option declaration
This addresses build issue introduced in
b9792638b0bfb308e0c7c125ac78f4ebf910c11b.
Added:
Modified:
compiler-rt/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt
index 24018ca78884..c961c7f834bf 100644
--- a/compiler-rt/CMakeLists.txt
+++ b/compiler-rt/CMakeLists.txt
@@ -446,7 +446,7 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
else()
set(SANITIZER_NO_UNDEFINED_SYMBOLS_DEFAULT OFF)
endif
-option(SANITIZER_NO_UNDEFINED_SYMBOLS ${SANITIZER_NO_UNDEFINED_SYMBOLS_DEFAULT})
+option(SANITIZER_NO_UNDEFINED_SYMBOLS "Report error on unresolved symbol references" ${SANITIZER_NO_UNDEFINED_SYMBOLS_DEFAULT})
if (SANITIZER_NO_UNDEFINED_SYMBOLS)
list(APPEND SANITIZER_COMMON_LINK_FLAGS -Wl,-z,defs)
endif()
More information about the llvm-commits
mailing list