diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-01-08 22:02:31 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2019-01-08 22:02:31 +0000 |
commit | a3de3644fd906b50f01a0d35e6cc782ce353fe2f (patch) | |
tree | 14b2f910e127d9a3d51f6ba6033f0fdda355d3dd /gnu/usr.bin/clang | |
parent | 222569756349940e2566cf61c78ecfa8618645b5 (diff) |
Disable ret-protector and retpoline protections in the clang compiler
to regain build performance.
OK deraadt@ guenther@ kettenis@
Diffstat (limited to 'gnu/usr.bin/clang')
-rw-r--r-- | gnu/usr.bin/clang/Makefile.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc index 1dde224fb60..a1a22948cdb 100644 --- a/gnu/usr.bin/clang/Makefile.inc +++ b/gnu/usr.bin/clang/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.8 2018/10/04 11:43:29 patrick Exp $ +# $OpenBSD: Makefile.inc,v 1.9 2019/01/08 22:02:30 bluhm Exp $ LLVM_SRCS?= ${.CURDIR}/../../../llvm @@ -22,9 +22,12 @@ LLDB_INCLUDES= -I${LLVM_SRCS}/tools/lldb/include \ CPPFLAGS+= -I${LLVM_SRCS}/include -I${.CURDIR}/../include -I${.OBJDIR} \ -I${.OBJDIR}/../include CPPFLAGS+= -DNDEBUG + +# Disable some protections in the compiler to regain performance. .if (${MACHINE} == "amd64" || ${MACHINE} == "arm64") -CPPFLAGS+= -fno-ret-protector +CPPFLAGS+= -fno-ret-protector -mno-retpoline .endif + CPPFLAGS+= -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS \ -D__STDC_FORMAT_MACROS |