summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/clang/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/clang/include/llvm')
-rw-r--r--gnu/usr.bin/clang/include/llvm/Config/Makefile15
-rw-r--r--gnu/usr.bin/clang/include/llvm/Config/llvm-config.h.in27
2 files changed, 11 insertions, 31 deletions
diff --git a/gnu/usr.bin/clang/include/llvm/Config/Makefile b/gnu/usr.bin/clang/include/llvm/Config/Makefile
index a4042a33210..a8d29f2b0f0 100644
--- a/gnu/usr.bin/clang/include/llvm/Config/Makefile
+++ b/gnu/usr.bin/clang/include/llvm/Config/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.5 2019/03/05 09:44:39 jsg Exp $
+# $OpenBSD: Makefile,v 1.6 2019/03/06 08:13:54 jsg Exp $
.include <bsd.own.mk>
@@ -27,9 +27,16 @@ Targets.def:
llvm-config.h: llvm-config.h.in
cp ${.CURDIR}/llvm-config.h.in $@
- echo "\n#define LLVM_DEFAULT_TARGET_TRIPLE \"${TRIPLE}\"" >> $@
- echo "#define LLVM_HOST_TRIPLE \"${TRIPLE}\"" >> $@
- echo "\n#endif" >> $@
+ printf "\n#define LLVM_DEFAULT_TARGET_TRIPLE \"${TRIPLE}\"\n" >> $@
+ printf "#define LLVM_HOST_TRIPLE \"${TRIPLE}\"\n" >> $@
+ printf "#define LLVM_NATIVE_ARCH ${LLVM_ARCH}\n" >> $@
+ printf "#define LLVM_NATIVE_ASMPARSER LLVMInitialize${LLVM_ARCH}AsmParser\n" >> $@
+ printf "#define LLVM_NATIVE_ASMPRINTER LLVMInitialize${LLVM_ARCH}AsmPrinter\n" >> $@
+ printf "#define LLVM_NATIVE_DISASSEMBLER LLVMInitialize${LLVM_ARCH}Disassembler\n" >> $@
+ printf "#define LLVM_NATIVE_TARGET LLVMInitialize${LLVM_ARCH}Target\n" >> $@
+ printf "#define LLVM_NATIVE_TARGETINFO LLVMInitialize${LLVM_ARCH}TargetInfo\n" >> $@
+ printf "#define LLVM_NATIVE_TARGETMC LLVMInitialize${LLVM_ARCH}TargetMC\n" >> $@
+ printf "\n#endif\n" >> $@
install includes: ${DEFS}
${INSTALL} -d -m 755 ${DESTDIR}${INCDIR}
diff --git a/gnu/usr.bin/clang/include/llvm/Config/llvm-config.h.in b/gnu/usr.bin/clang/include/llvm/Config/llvm-config.h.in
index 13c04b5983c..ffde9035a98 100644
--- a/gnu/usr.bin/clang/include/llvm/Config/llvm-config.h.in
+++ b/gnu/usr.bin/clang/include/llvm/Config/llvm-config.h.in
@@ -32,39 +32,12 @@
/* Define if we link Polly to the tools */
/* #undef LINK_POLLY_INTO_TOOLS */
-/* Target triple LLVM will generate code for by default */
-/* #define LLVM_DEFAULT_TARGET_TRIPLE "amd64-unknown-openbsd6.0" */
-
/* Define if threads enabled */
#define LLVM_ENABLE_THREADS 1
/* Has gcc/MSVC atomic intrinsics */
#define LLVM_HAS_ATOMICS 1
-/* Host triple LLVM will be executed on */
-/* #define LLVM_HOST_TRIPLE "amd64-unknown-openbsd6.0" */
-
-/* LLVM architecture name for the native architecture, if available */
-/* #define LLVM_NATIVE_ARCH X86 */
-
-/* LLVM name for the native AsmParser init function, if available */
-/* #define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser */
-
-/* LLVM name for the native AsmPrinter init function, if available */
-/* #define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter */
-
-/* LLVM name for the native Disassembler init function, if available */
-/* #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler */
-
-/* LLVM name for the native Target init function, if available */
-/* #define LLVM_NATIVE_TARGET LLVMInitializeX86Target */
-
-/* LLVM name for the native TargetInfo init function, if available */
-/* #define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo */
-
-/* LLVM name for the native target MC init function, if available */
-/* #define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC */
-
/* Define if this is Unixish platform */
#define LLVM_ON_UNIX 1