Workaround for issue #318.

The std.range tests are failing because of a LLVM bug. See
PR15608 for deatils. The bug is fixed in LLVM 3.3.
The workaroung is to run the std.range test only with -O1.
This commit is contained in:
kai
2013-03-31 15:09:41 +02:00
parent b889c20dca
commit 254c055169

View File

@@ -606,6 +606,11 @@ function(add_tests module_files)
if(${LDC_LLVM_VER} EQUAL 301 AND ${HOST_BITNESS} EQUAL 64 AND
"${testroot}" STREQUAL "phobos_std_exception")
testcase(release "-O1;-release")
# Building the std.range tests triggers an assertion error on
# every LLVM release before 3.3. See PR15608.
elseif(${LDC_LLVM_VER} LESS 303 AND
"${testroot}" STREQUAL "phobos_std_range")
testcase(release "-O1;-release")
else()
testcase(release "-O3;-release")
endif()