diff --git a/llvm/test/CMakeLists.txt b/llvm/test/CMakeLists.txt index 7e6c66e249fce8..6f826d54a4b9c7 100644 --- a/llvm/test/CMakeLists.txt +++ b/llvm/test/CMakeLists.txt @@ -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( diff --git a/llvm/test/lit.site.cfg.py.in b/llvm/test/lit.site.cfg.py.in index 67c1302a7fb151..190cd4bccc2dcf 100644 --- a/llvm/test/lit.site.cfg.py.in +++ b/llvm/test/lit.site.cfg.py.in @@ -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.