Use llvm_canonicalize_cmake_booleans where intended
Differential Revision: https://reviews.llvm.org/D72130
This commit is contained in:
parent
b2be259fa9
commit
dfadb74f25
@ -14,6 +14,7 @@ llvm_canonicalize_cmake_booleans(
|
||||
LLVM_USE_INTEL_JITEVENTS
|
||||
LLVM_BUILD_EXAMPLES
|
||||
LLVM_ENABLE_PLUGINS
|
||||
LLVM_BYE_LINK_INTO_TOOLS
|
||||
)
|
||||
|
||||
configure_lit_site_cfg(
|
||||
|
||||
@ -2,9 +2,6 @@
|
||||
|
||||
import sys
|
||||
|
||||
def cmake_bool(val):
|
||||
return val.lower() in (1, "on", "yes", "true", "y",)
|
||||
|
||||
config.host_triple = "@LLVM_HOST_TRIPLE@"
|
||||
config.target_triple = "@TARGET_TRIPLE@"
|
||||
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
|
||||
@ -50,7 +47,7 @@ config.host_arch = "@HOST_ARCH@"
|
||||
config.have_opt_viewer_modules = @LLVM_HAVE_OPT_VIEWER_MODULES@
|
||||
config.libcxx_used = @LLVM_LIBCXX_USED@
|
||||
config.has_plugins = @LLVM_ENABLE_PLUGINS@
|
||||
config.linked_bye_extension = cmake_bool("@LLVM_BYE_LINK_INTO_TOOLS@")
|
||||
config.linked_bye_extension = @LLVM_BYE_LINK_INTO_TOOLS@
|
||||
|
||||
# Support substitution of the tools_dir with user parameters. This is
|
||||
# used when we can't determine the tool dir at configuration time.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user