aboutsummaryrefslogtreecommitdiff
path: root/Makefile.programs
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-05-06 22:42:09 +0000
committerHal Finkel <hfinkel@anl.gov>2013-05-06 22:42:09 +0000
commitcbbb8e4d8db245bf44d1e121b1f92218559dcc35 (patch)
tree3b75bca1a31eb41f25550ce89736388ca56cecb4 /Makefile.programs
parent5633823c8590bbc93bc997b155120fb89a22a72e (diff)
Always enable hashed program output when using reference outputs
Because several of the reference outputs require hashed output, running with reference outputs but without hashed program output yields anomalous failures. git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@181260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.programs')
-rw-r--r--Makefile.programs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.programs b/Makefile.programs
index e00648e1..5900d132 100644
--- a/Makefile.programs
+++ b/Makefile.programs
@@ -474,6 +474,12 @@ ifdef REQUIRES_EH_SUPPORT
JIT_OPTS += -enable-correct-eh-support
endif
+# Some of the reference outputs assume that ENABLE_HASHED_PROGRAM_OUTPUT
+# is defined. Make sure it is defined if USE_REFERENCE_OUTPUT is defined.
+ifdef USE_REFERENCE_OUTPUT
+ENABLE_HASHED_PROGRAM_OUTPUT := 1
+endif
+
# If the program wants its output hashed, add an output filter.
ifdef ENABLE_HASHED_PROGRAM_OUTPUT
ifdef HASH_PROGRAM_OUTPUT