Add a bit of a hack to avoid multiple defines of variables in

config.h and llvm-config.h.  This could probably be improved.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2010-08-08 09:18:29 +00:00
parent b1e4eebec0
commit d442d2846a
3 changed files with 16 additions and 0 deletions

View File

@@ -11,6 +11,11 @@
they can be in exported headers and won't override package specific
directives. This is a C file so we can include it in the llvm-c headers. */
/* To avoid multiple inclusions of these variables when we include the exported
headers and config.h, conditionally include these. */
/* TODO: This is a bit of a hack. */
#ifndef CONFIG_H
/* Installation directory for binary executables */
#undef LLVM_BINDIR
@@ -82,3 +87,5 @@
/* Installation prefix directory */
#undef LLVM_PREFIX
#endif