[llvm] 95d4506 - add_tablegen: Quick fix to reflect LLVM_TABLEGEN to llvm-min-tblgen
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 01:06:12 PDT 2023
Author: NAKAMURA Takumi
Date: 2023-05-02T17:05:42+09:00
New Revision: 95d4506dda79d49e55fdd0e4da7bf81487167aa1
URL: https://github.com/llvm/llvm-project/commit/95d4506dda79d49e55fdd0e4da7bf81487167aa1
DIFF: https://github.com/llvm/llvm-project/commit/95d4506dda79d49e55fdd0e4da7bf81487167aa1.diff
LOG: add_tablegen: Quick fix to reflect LLVM_TABLEGEN to llvm-min-tblgen
`sanitizer-x86_64-linux-android` uses LLVM_TABLEGEN.
Added:
Modified:
llvm/cmake/modules/TableGen.cmake
Removed:
################################################################################
diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake
index be16127c724e..7fd6628ef55d 100644
--- a/llvm/cmake/modules/TableGen.cmake
+++ b/llvm/cmake/modules/TableGen.cmake
@@ -154,6 +154,13 @@ macro(add_tablegen target project)
endif()
endif()
+ # FIXME: Quick fix to reflect LLVM_TABLEGEN to llvm-min-tblgen
+ if("${target}" STREQUAL "llvm-min-tblgen"
+ AND NOT "${LLVM_TABLEGEN}" STREQUAL ""
+ AND NOT "${LLVM_TABLEGEN}" STREQUAL "llvm-tblgen")
+ set(${project}_TABLEGEN_DEFAULT "${LLVM_TABLEGEN}")
+ endif()
+
if(ADD_TABLEGEN_EXPORT)
set(${project}_TABLEGEN "${${project}_TABLEGEN_DEFAULT}" CACHE
STRING "Native TableGen executable. Saves building one when cross-compiling.")
More information about the llvm-commits
mailing list