So where could I find a list of LLVM libraries so I can figure out which
ones I actually need to link into my program?
Oscar Fuentes <ofv at wanadoo.es> writes:> Óscar Fuentes <ofv at wanadoo.es
<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>> writes:
>
> >/ This patch *seems* to fix the problem (cmake regexps are not
thoroughly
> />/ documented):
> />/
> />/ --- a/cmake/modules/LLVM-Config.cmake
> />/ +++ b/cmake/modules/LLVM-Config.cmake
> />/ @@ -160,7 +160,7 @@ function(explicit_map_components_to_libraries
out_libs)
> />/ list(REVERSE expanded_components)
> />/ list(APPEND processed ${lib})
> />/ # Find the maximum index that doesn't have to be
re-processed:
> />/ - while(NOT "${expanded_components}" MATCHES
"^${processed}.*" )
> />/ + while(NOT "${expanded_components}" MATCHES
"^${processed}(;)|(.*)")
> />/ list(REMOVE_AT processed -1)
> />/ endwhile()
> />/ list(LENGTH processed cursor)
> /
> The patch above doesn't make any sense. This looks more correct:
>
> --- a/cmake/modules/LLVM-Config.cmake
> +++ b/cmake/modules/LLVM-Config.cmake
> @@ -160,7 +160,7 @@ function(explicit_map_components_to_libraries out_libs)
> list(REVERSE expanded_components)
> list(APPEND processed ${lib})
> # Find the maximum index that doesn't have to be re-processed:
> - while(NOT "${expanded_components}" MATCHES
"^${processed}.*" )
> + while(NOT "${expanded_components}" MATCHES
"^${processed};|$")
> list(REMOVE_AT processed -1)
> endwhile()
> list(LENGTH processed cursor)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20120802/272e31e9/attachment.html>