Index: Fortran/UnitTests/fcvs21_f95/CMakeLists.txt =================================================================== --- Fortran/UnitTests/fcvs21_f95/CMakeLists.txt +++ Fortran/UnitTests/fcvs21_f95/CMakeLists.txt @@ -46,6 +46,7 @@ endif() set(FP_TOLERANCE 1.0e-11) # set by the most sensitive numerical test +set(FP_IGNOREWHITESPACE ON) # list-directed output has flexible whitespace llvm_singlesource() file(COPY lit.local.cfg DESTINATION "${CMAKE_CURRENT_BINARY_DIR}") Index: cmake/modules/SingleMultiSource.cmake =================================================================== --- cmake/modules/SingleMultiSource.cmake +++ cmake/modules/SingleMultiSource.cmake @@ -128,6 +128,9 @@ if(FP_ABSTOLERANCE) set(DIFFPROG "${DIFFPROG} -a ${FP_ABSTOLERANCE}") endif() + if(FP_IGNOREWHITESPACE) + set(DIFFPROG "${DIFFPROG} -i") + endif() llvm_test_verify(${DIFFPROG} %o %S/${REFERENCE_OUTPUT}) llvm_test_data(${target} ${REFERENCE_OUTPUT}) endif()