mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-27 20:06:20 +00:00
Fix spurious warning in ExtensionDependencies.inc [nfc]
This commit is contained in:
parent
70619fa82d
commit
37309fb02f
@ -977,12 +977,12 @@ function(process_llvm_pass_plugins)
|
||||
const char* Name;\n\
|
||||
const char* RequiredLibraries[1 + 1 + ${llvm_plugin_max_deps_length}];\n\
|
||||
};\n\
|
||||
std::array<ExtensionDescriptor, ${llvm_static_extension_count}> AvailableExtensions{\n")
|
||||
std::array<ExtensionDescriptor, ${llvm_static_extension_count}> AvailableExtensions{\n")
|
||||
|
||||
foreach(llvm_extension ${LLVM_STATIC_EXTENSIONS})
|
||||
get_property(llvm_plugin_deps TARGET ${llvm_extension} PROPERTY LINK_LIBRARIES)
|
||||
|
||||
file(APPEND "${ExtensionDeps}.tmp" "{\"${llvm_extension}\", {")
|
||||
file(APPEND "${ExtensionDeps}.tmp" "{{\"${llvm_extension}\", {")
|
||||
foreach(llvm_plugin_dep ${llvm_plugin_deps})
|
||||
# Turn library dependency back to component name, if possible.
|
||||
# That way llvm-config can avoid redundant dependencies.
|
||||
@ -996,7 +996,7 @@ function(process_llvm_pass_plugins)
|
||||
endforeach()
|
||||
|
||||
# Self + mandatory trailing null, because the number of RequiredLibraries differs between extensions.
|
||||
file(APPEND "${ExtensionDeps}.tmp" \"${llvm_extension}\", "nullptr}},\n")
|
||||
file(APPEND "${ExtensionDeps}.tmp" \"${llvm_extension}\", "nullptr}}},\n")
|
||||
endforeach()
|
||||
file(APPEND "${ExtensionDeps}.tmp" "};\n")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user