diff options
author | joerg <joerg@pkgsrc.org> | 2015-03-02 19:59:06 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2015-03-02 19:59:06 +0000 |
commit | 9fb05eeab8c973946609544ffbe25bf4fd6d2f74 (patch) | |
tree | 58a83ed1e78d8f3180ae8a77d03d2d8bb94c7666 /mk/compiler | |
parent | 4b4f4c781f85b9d108ca3bf28379c2ed1fc2ffab (diff) | |
download | pkgsrc-9fb05eeab8c973946609544ffbe25bf4fd6d2f74.tar.gz |
LLVM's correlated value propagation pass is known to require a lot of
memory and CPU time for certain input. Provide a variable
(CLANG_NO_VALUE_PROPAGATION_PASS) for selectively disabling it in those
places known to trigger it.
Diffstat (limited to 'mk/compiler')
-rw-r--r-- | mk/compiler/clang.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/compiler/clang.mk b/mk/compiler/clang.mk index b009ee147ef..dec52a13d32 100644 --- a/mk/compiler/clang.mk +++ b/mk/compiler/clang.mk @@ -1,4 +1,4 @@ -# $NetBSD: clang.mk,v 1.14 2014/12/03 14:05:25 joerg Exp $ +# $NetBSD: clang.mk,v 1.15 2015/03/02 19:59:07 joerg Exp $ # # This is the compiler definition for the clang compiler. # @@ -72,4 +72,6 @@ CWRAPPERS_APPEND.cc+= -Qunused-arguments _WRAP_EXTRA_ARGS.CXX+= -Qunused-arguments CWRAPPERS_APPEND.cxx+= -Qunused-arguments +CLANG_NO_VALUE_PROPAGATION_PASS= -O0 + .endif # COMPILER_CLANG_MK |