diff --git a/llvm/test/CMakeLists.txt b/llvm/test/CMakeLists.txt --- a/llvm/test/CMakeLists.txt +++ b/llvm/test/CMakeLists.txt @@ -15,6 +15,7 @@ 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 --- a/llvm/test/lit.site.cfg.py.in +++ b/llvm/test/lit.site.cfg.py.in @@ -48,7 +48,7 @@ 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.