mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
Avoid multiple definition warnings when both config.h and
llvm-config.h are included. This is the cmake counterpart of r110547. See bug #7809. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110753 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
** Created by Kevin from config.h.in **
|
** Created by Kevin from config.h.in **
|
||||||
***************************************/
|
***************************************/
|
||||||
|
|
||||||
|
#ifndef CONFIG_H
|
||||||
|
#define CONFIG_H
|
||||||
|
|
||||||
/* Define if dlopen(0) will open the symbols of the program */
|
/* Define if dlopen(0) will open the symbols of the program */
|
||||||
#undef CAN_DLOPEN_SELF
|
#undef CAN_DLOPEN_SELF
|
||||||
|
|
||||||
@@ -628,3 +631,5 @@
|
|||||||
|
|
||||||
/* Native LLVM architecture, short name */
|
/* Native LLVM architecture, short name */
|
||||||
#cmakedefine LLVM_NATIVE_ARCHNAME ${LLVM_NATIVE_ARCH}
|
#cmakedefine LLVM_NATIVE_ARCHNAME ${LLVM_NATIVE_ARCH}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@@ -11,6 +11,11 @@
|
|||||||
they can be in exported headers and won't override package specific
|
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. */
|
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 */
|
/* Installation directory for binary executables */
|
||||||
#cmakedefine LLVM_BINDIR "${LLVM_BINDIR}"
|
#cmakedefine LLVM_BINDIR "${LLVM_BINDIR}"
|
||||||
|
|
||||||
@@ -82,3 +87,5 @@
|
|||||||
|
|
||||||
/* Installation prefix directory */
|
/* Installation prefix directory */
|
||||||
#cmakedefine LLVM_PREFIX "${LLVM_PREFIX}"
|
#cmakedefine LLVM_PREFIX "${LLVM_PREFIX}"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user