@@ -134,7 +134,7 @@ function(llvm_expand_pseudo_components out_components)
134
134
endif ()
135
135
foreach (c ${link_components} )
136
136
# add codegen, asmprinter, asmparser, disassembler
137
- if (${c} IN_LIST LLVM_TARGETS_TO_BUILD)
137
+ if (" ${c} " IN_LIST LLVM_TARGETS_TO_BUILD)
138
138
if (LLVM${c} CodeGen IN_LIST LLVM_AVAILABLE_LIBS)
139
139
list (APPEND expanded_components "${c} CodeGen" )
140
140
else ()
@@ -149,48 +149,48 @@ function(llvm_expand_pseudo_components out_components)
149
149
list (APPEND expanded_components "${c}${subcomponent} " )
150
150
endif ()
151
151
endforeach ()
152
- elseif ( c STREQUAL "nativecodegen" )
152
+ elseif (" ${c} " STREQUAL "nativecodegen" )
153
153
foreach (subcomponent IN ITEMS CodeGen Desc Info)
154
154
if (LLVM${LLVM_NATIVE_ARCH}${subcomponent} IN_LIST LLVM_AVAILABLE_LIBS)
155
155
list (APPEND expanded_components "${LLVM_NATIVE_ARCH}${subcomponent} " )
156
156
endif ()
157
157
endforeach ()
158
- elseif ( c STREQUAL "AllTargetsCodeGens" )
158
+ elseif (" ${c} " STREQUAL "AllTargetsCodeGens" )
159
159
# Link all the codegens from all the targets
160
160
foreach (t ${LLVM_TARGETS_TO_BUILD} )
161
161
if ( TARGET LLVM${t} CodeGen)
162
162
list (APPEND expanded_components "${t} CodeGen" )
163
163
endif ()
164
164
endforeach (t)
165
- elseif ( c STREQUAL "AllTargetsAsmParsers" )
165
+ elseif (" ${c} " STREQUAL "AllTargetsAsmParsers" )
166
166
# Link all the asm parsers from all the targets
167
167
foreach (t ${LLVM_TARGETS_TO_BUILD} )
168
168
if (LLVM${t} AsmParser IN_LIST LLVM_AVAILABLE_LIBS)
169
169
list (APPEND expanded_components "${t} AsmParser" )
170
170
endif ()
171
171
endforeach (t)
172
- elseif ( c STREQUAL "AllTargetsDescs" )
172
+ elseif ( " ${c} " STREQUAL "AllTargetsDescs" )
173
173
# Link all the descs from all the targets
174
174
foreach (t ${LLVM_TARGETS_TO_BUILD} )
175
175
if (LLVM${t} Desc IN_LIST LLVM_AVAILABLE_LIBS)
176
176
list (APPEND expanded_components "${t} Desc" )
177
177
endif ()
178
178
endforeach (t)
179
- elseif ( c STREQUAL "AllTargetsDisassemblers" )
179
+ elseif (" ${c} " STREQUAL "AllTargetsDisassemblers" )
180
180
# Link all the disassemblers from all the targets
181
181
foreach (t ${LLVM_TARGETS_TO_BUILD} )
182
182
if (LLVM${t} Disassembler IN_LIST LLVM_AVAILABLE_LIBS)
183
183
list (APPEND expanded_components "${t} Disassembler" )
184
184
endif ()
185
185
endforeach (t)
186
- elseif ( c STREQUAL "AllTargetsInfos" )
186
+ elseif (" ${c} " STREQUAL "AllTargetsInfos" )
187
187
# Link all the infos from all the targets
188
188
foreach (t ${LLVM_TARGETS_TO_BUILD} )
189
189
if (LLVM${t} Info IN_LIST LLVM_AVAILABLE_LIBS)
190
190
list (APPEND expanded_components "${t} Info" )
191
191
endif ()
192
192
endforeach (t)
193
- elseif ( c STREQUAL "AllTargetsMCAs" )
193
+ elseif (" ${c} " STREQUAL "AllTargetsMCAs" )
194
194
# Link all the TargetMCAs from all the targets
195
195
foreach (t ${LLVM_TARGETS_TO_BUILD} )
196
196
if ( TARGET LLVM${t} TargetMCA )
@@ -222,7 +222,7 @@ function(llvm_map_components_to_libnames out_libs)
222
222
# process target dependencies.
223
223
if (NOT LLVM_TARGETS_CONFIGURED)
224
224
foreach (c ${link_components} )
225
- is_llvm_target_specifier(${c} iltl_result ALL_TARGETS)
225
+ is_llvm_target_specifier(" ${c} " iltl_result ALL_TARGETS)
226
226
if (iltl_result)
227
227
message (FATAL_ERROR "Specified target library before target registration is complete." )
228
228
endif ()
@@ -250,13 +250,13 @@ function(llvm_map_components_to_libnames out_libs)
250
250
if (c_rename)
251
251
set (c ${c_rename} )
252
252
endif ()
253
- if ( c STREQUAL "native" )
253
+ if (" ${c} " STREQUAL "native" )
254
254
# already processed
255
- elseif ( c STREQUAL "backend" )
255
+ elseif (" ${c} " STREQUAL "backend" )
256
256
# same case as in `native'.
257
- elseif ( c STREQUAL "engine" )
257
+ elseif (" ${c} " STREQUAL "engine" )
258
258
# already processed
259
- elseif ( c STREQUAL "all" )
259
+ elseif (" ${c} " STREQUAL "all" )
260
260
get_property (all_components GLOBAL PROPERTY LLVM_COMPONENT_LIBS)
261
261
list (APPEND expanded_components ${all_components} )
262
262
else ()
@@ -265,7 +265,7 @@ function(llvm_map_components_to_libnames out_libs)
265
265
list (FIND capitalized_libs LLVM${capitalized} lib_idx)
266
266
if ( lib_idx LESS 0 )
267
267
# The component is unknown. Maybe is an omitted target?
268
- is_llvm_target_library(${c} iltl_result OMITTED_TARGETS)
268
+ is_llvm_target_library(" ${c} " iltl_result OMITTED_TARGETS)
269
269
if (iltl_result)
270
270
# A missing library to a directly referenced omitted target would be bad.
271
271
message (FATAL_ERROR "Library '${c} ' is a direct reference to a target library for an omitted target." )
@@ -280,7 +280,7 @@ function(llvm_map_components_to_libnames out_libs)
280
280
list (GET LLVM_AVAILABLE_LIBS ${lib_idx} canonical_lib)
281
281
list (APPEND expanded_components ${canonical_lib} )
282
282
endif ( lib_idx LESS 0 )
283
- endif ( c STREQUAL "native" )
283
+ endif (" ${c} " STREQUAL "native" )
284
284
endforeach (c)
285
285
286
286
set (${out_libs} ${expanded_components} PARENT_SCOPE)
0 commit comments