[Libclc-dev] [PATCH] Include llvm-config.h instead of config.h
Jan Vesely
jan.vesely at rutgers.edu
Thu Aug 21 22:32:21 PDT 2014
On Sun, 2014-08-10 at 11:27 +0200, Niels Ole Salscheider wrote:
> Signed-off-by: Niels Ole Salscheider <niels_ole at salscheider-online.de>
you were right we can't use the macros defined in the header in order to
include it :)
I checked that llvm-config.h is distributed in 3.3/4/5 and contains the
version info.
this patch looks good to me.
> ---
> utils/prepare-builtins.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/utils/prepare-builtins.cpp b/utils/prepare-builtins.cpp
> index ce84148..726866e 100644
> --- a/utils/prepare-builtins.cpp
> +++ b/utils/prepare-builtins.cpp
> @@ -10,7 +10,7 @@
> #include "llvm/Support/raw_ostream.h"
> #include "llvm/Support/ErrorOr.h"
> #include "llvm/Support/ToolOutputFile.h"
> -#include "llvm/Config/config.h"
> +#include "llvm/Config/llvm-config.h"
>
> #define LLVM_350_AND_NEWER \
> (LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 5))
--
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/libclc-dev/attachments/20140822/aaa07827/attachment.sig>
More information about the Libclc-dev
mailing list