[llvm] [CMake][Windows] Fix Debug config build when using MSBuild (PR #111765)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 20:57:46 PDT 2024


================
@@ -190,9 +190,13 @@ macro(add_tablegen target project)
   endif()
 
   # FIXME: Quick fix to reflect LLVM_TABLEGEN to llvm-min-tblgen
+  set(RAW_LLVM_TABLEGEN ${LLVM_TABLEGEN})
+  if(NOT "${RAW_LLVM_TABLEGEN}" STREQUAL "")
+    get_filename_component(RAW_LLVM_TABLEGEN ${RAW_LLVM_TABLEGEN} NAME_WE)
----------------
chapuni wrote:

Would it match if `${LLVM_TABLEGEN}` points to `X:/out-of-tree/path/to/llvm-tblgen.exe`? I don't think it'd be desirable.

https://github.com/llvm/llvm-project/pull/111765


More information about the llvm-commits mailing list