Skip to content

Commit 754ebc6

Browse files
authored
[NFC][libclc] Add missing evaluation for variable ${tool}_target (#163540)
The variabls should be evaluated before checking for empty.
1 parent 082efba commit 754ebc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ if( EXISTS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} )
124124
endif()
125125

126126
foreach( tool IN ITEMS clang opt llvm-as llvm-link )
127-
if( NOT EXISTS "${${tool}_exe}" AND "${tool}_target" STREQUAL "" )
127+
if( NOT EXISTS "${${tool}_exe}" AND "${${tool}_target}" STREQUAL "" )
128128
message( FATAL_ERROR "libclc toolchain incomplete - missing tool ${tool}!" )
129129
endif()
130130
endforeach()

0 commit comments

Comments
 (0)