summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/clang
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-01-07 09:50:09 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-01-07 09:50:09 +0000
commit98b7ebe46d45e557a75aa27ca1edfd2d58c63f32 (patch)
treeec48610fbe00a50c9d102b096c84b286a4ac2a05 /gnu/usr.bin/clang
parent346d5e52869296d5d70f02953be3dba40c17359e (diff)
Only install header files relevant for the architecture we're targeting.
ok patrick@, jsg@
Diffstat (limited to 'gnu/usr.bin/clang')
-rw-r--r--gnu/usr.bin/clang/include/clang/intrin/Makefile130
1 files changed, 65 insertions, 65 deletions
diff --git a/gnu/usr.bin/clang/include/clang/intrin/Makefile b/gnu/usr.bin/clang/include/clang/intrin/Makefile
index 8898322d852..876c2bb8177 100644
--- a/gnu/usr.bin/clang/include/clang/intrin/Makefile
+++ b/gnu/usr.bin/clang/include/clang/intrin/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.3 2017/01/06 14:44:34 kettenis Exp $
+# $OpenBSD: Makefile,v 1.4 2017/01/07 09:50:08 kettenis Exp $
.include <bsd.own.mk>
@@ -7,70 +7,70 @@ CLANG_INTR_INCDIR= /usr/lib/clang/${LLVM_V}/include
.PATH: ${.CURDIR}/../../../../../llvm/tools/clang/lib/Headers
-HEADERS=adxintrin.h \
- altivec.h \
- ammintrin.h \
- arm_acle.h \
- avx2intrin.h \
- avx512bwintrin.h \
- avx512cdintrin.h \
- avx512erintrin.h \
- avx512fintrin.h \
- avx512vlbwintrin.h \
- avx512vlintrin.h \
- avx512dqintrin.h \
- avx512vldqintrin.h \
- pkuintrin.h \
- avxintrin.h \
- bmi2intrin.h \
- bmiintrin.h \
- __clang_cuda_runtime_wrapper.h \
- cpuid.h \
- cuda_builtin_vars.h \
- emmintrin.h \
- f16cintrin.h \
- fma4intrin.h \
- fmaintrin.h \
- fxsrintrin.h \
- htmintrin.h \
- htmxlintrin.h \
- ia32intrin.h \
- immintrin.h \
- Intrin.h \
- lzcntintrin.h \
- mm3dnow.h \
- mmintrin.h \
- mm_malloc.h \
- module.modulemap \
- nmmintrin.h \
- pmmintrin.h \
- popcntintrin.h \
- prfchwintrin.h \
- rdseedintrin.h \
- rtmintrin.h \
- s390intrin.h \
- shaintrin.h \
- smmintrin.h \
- stdalign.h \
- stdatomic.h \
- stdnoreturn.h \
- tbmintrin.h \
- tgmath.h \
- tmmintrin.h \
- unwind.h \
- varargs.h \
- vecintrin.h \
- __wmmintrin_aes.h \
- wmmintrin.h \
- __wmmintrin_pclmul.h \
- x86intrin.h \
- xmmintrin.h \
- xopintrin.h \
- xsaveintrin.h \
- xsaveoptintrin.h \
- xsavecintrin.h \
- xsavesintrin.h \
- xtestintrin.h
+HEADERS= stdalign.h \
+ stdatomic.h \
+ stdnoreturn.h \
+ tgmath.h \
+ unwind.h \
+ varargs.h \
+ module.modulemap \
+
+.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "arm"
+HEADERS+= arm_acle.h
+.elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
+HEADERS+= adxintrin.h \
+ ammintrin.h \
+ avx2intrin.h \
+ avx512bwintrin.h \
+ avx512cdintrin.h \
+ avx512erintrin.h \
+ avx512fintrin.h \
+ avx512vlbwintrin.h \
+ avx512vlintrin.h \
+ avx512dqintrin.h \
+ avx512vldqintrin.h \
+ pkuintrin.h \
+ avxintrin.h \
+ bmi2intrin.h \
+ bmiintrin.h \
+ cpuid.h \
+ emmintrin.h \
+ f16cintrin.h \
+ fma4intrin.h \
+ fmaintrin.h \
+ fxsrintrin.h \
+ ia32intrin.h \
+ immintrin.h \
+ lzcntintrin.h \
+ mm3dnow.h \
+ mmintrin.h \
+ mm_malloc.h \
+ nmmintrin.h \
+ pmmintrin.h \
+ popcntintrin.h \
+ prfchwintrin.h \
+ rdseedintrin.h \
+ rtmintrin.h \
+ shaintrin.h \
+ smmintrin.h \
+ tbmintrin.h \
+ tmmintrin.h \
+ __wmmintrin_aes.h \
+ wmmintrin.h \
+ __wmmintrin_pclmul.h \
+ x86intrin.h \
+ xmmintrin.h \
+ xopintrin.h \
+ xsaveintrin.h \
+ xsaveoptintrin.h \
+ xsavecintrin.h \
+ xsavesintrin.h \
+ xtestintrin.h
+.elif ${MACHINE_ARCH} == "powerpc"
+HEADERS+= altivec.h \
+ htmintrin.h \
+ htmxlintrin.h
+.endif
all: ${HEADERS}