[llvm][NFC] Use llvm_canonicalize_cmake_booleans for LLVM_HAVE_TF_AOT
authorMircea Trofin <mtrofin@google.com>
Mon, 29 Jun 2020 15:44:38 +0000 (08:44 -0700)
committerMircea Trofin <mtrofin@google.com>
Mon, 29 Jun 2020 19:27:52 +0000 (12:27 -0700)
Reviewers: thakis

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82776

llvm/test/CMakeLists.txt
llvm/test/lit.site.cfg.py.in

index 7e6c66e..6f826d5 100644 (file)
@@ -15,6 +15,7 @@ llvm_canonicalize_cmake_booleans(
   LLVM_BUILD_EXAMPLES
   LLVM_ENABLE_PLUGINS
   LLVM_BYE_LINK_INTO_TOOLS
+  LLVM_HAVE_TF_AOT
   )
 
 configure_lit_site_cfg(
index 67c1302..190cd4b 100644 (file)
@@ -48,7 +48,7 @@ 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 = @LLVM_BYE_LINK_INTO_TOOLS@
-config.have_tf_aot = ("@LLVM_HAVE_TF_AOT@" == "ON")
+config.have_tf_aot = @LLVM_HAVE_TF_AOT@
 
 # Support substitution of the tools_dir with user parameters. This is
 # used when we can't determine the tool dir at configuration time.