[llvm] ea3630e - [CMake][MLGO] Fix cmake for MLGO
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 6 00:32:17 PDT 2022
Author: eopXD
Date: 2022-09-06T00:32:08-07:00
New Revision: ea3630e8d4df1d4a4dd9f0f97c0cac33261fea36
URL: https://github.com/llvm/llvm-project/commit/ea3630e8d4df1d4a4dd9f0f97c0cac33261fea36
DIFF: https://github.com/llvm/llvm-project/commit/ea3630e8d4df1d4a4dd9f0f97c0cac33261fea36.diff
LOG: [CMake][MLGO] Fix cmake for MLGO
The if-statement should check whehter TFLITE is on or not rather than if the variable is specified.
Reviewed By: mtrofin
Differential Revision: https://reviews.llvm.org/D132902
Added:
Modified:
llvm/lib/Analysis/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/CMakeLists.txt b/llvm/lib/Analysis/CMakeLists.txt
index 4bf14a86225d8..274b513eb994a 100644
--- a/llvm/lib/Analysis/CMakeLists.txt
+++ b/llvm/lib/Analysis/CMakeLists.txt
@@ -18,7 +18,7 @@ if (DEFINED LLVM_HAVE_TF_AOT OR DEFINED LLVM_HAVE_TF_API)
endif()
if (DEFINED LLVM_HAVE_TF_API)
- if (DEFINED LLVM_HAVE_TFLITE)
+ if (LLVM_HAVE_TFLITE)
build_proto(
tensorflow/core/protobuf/error_codes
tensorflow/core/example/feature
More information about the llvm-commits
mailing list