File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -190,14 +190,14 @@ macro(add_tablegen target project)
190190 endif ()
191191
192192 # FIXME: Quick fix to reflect LLVM_TABLEGEN to llvm-min-tblgen
193+ set (RAW_LLVM_TABLEGEN ${LLVM_TABLEGEN} )
194+ if (NOT "${RAW_LLVM_TABLEGEN} " STREQUAL "" )
195+ get_filename_component (RAW_LLVM_TABLEGEN ${RAW_LLVM_TABLEGEN} NAME_WE )
196+ endif ()
193197 if ("${target} " STREQUAL "llvm-min-tblgen"
194- AND NOT "${LLVM_TABLEGEN} " STREQUAL "" )
195- # Extract base filename from full path.
196- get_filename_component (RAW_LLVM_TABLEGEN ${LLVM_TABLEGEN} NAME_WE )
197- if (NOT "${RAW_LLVM_TABLEGEN} " STREQUAL ""
198- AND NOT "${RAW_LLVM_TABLEGEN} " STREQUAL "llvm-tblgen" )
199- set (${project} _TABLEGEN_DEFAULT "${LLVM_TABLEGEN} " )
200- endif ()
198+ AND NOT "${RAW_LLVM_TABLEGEN} " STREQUAL ""
199+ AND NOT "${RAW_LLVM_TABLEGEN} " STREQUAL "llvm-tblgen" )
200+ set (${project} _TABLEGEN_DEFAULT "${LLVM_TABLEGEN} " )
201201 endif ()
202202
203203 if (ADD_TABLEGEN_EXPORT)
You can’t perform that action at this time.
0 commit comments