OSDN Git Service

[cmake] Teach the llvm-config program to respect LLVM_LIBDIR_SUFFIX.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 29 Dec 2014 11:16:25 +0000 (11:16 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 29 Dec 2014 11:16:25 +0000 (11:16 +0000)
commit6e53164e3c4f3db35959b3bc4db00e1243a90c4e
tree48a44eafd38d0cc191b8bb2a017dbc1193910aee
parent8f94441e03aabf5759c31a093b6576ca6bc2eef9
[cmake] Teach the llvm-config program to respect LLVM_LIBDIR_SUFFIX.

For this to work, we have to encode it in the build variables and use it
from llvm-config.cpp. I've tried to do this reasonably cleanly, but the
code for llvm-config.cpp is pretty strange. However, with this,
llvm-config stops giving the wrong answer when using LLVM_LIBDIR_SUFFIX.

Note that the configure+make build just sets this to an empty string as
that build system has zero support for multilib of any form. I'm not
planning to add support there either, but this should leave a path for
anyone that wanted to.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224921 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-config/BuildVariables.inc.in
tools/llvm-config/Makefile
tools/llvm-config/llvm-config.cpp