Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Fortran/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ if (NOT WIN32 AND NOT APPLE)
add_subdirectory(gfortran)
endif()
endif()

file(COPY lit.local.cfg DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
5 changes: 5 additions & 0 deletions Fortran/Readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
By default LLVM flang prints a stop message in certain circumstances that
breaks some of the tests in this directory. As such we add the environment
variable NO_STOP_MESSAGE=1 to disable this behaviour. If we wish to add tests
in future that need to check the stop message, those can be added in a
subdirectory with a lit.local.cfg that unsets this environment variable.
6 changes: 0 additions & 6 deletions Fortran/UnitTests/fcvs21_f95/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
config.traditional_output = True
config.single_source = True

# Flang uses NO_STOP_MESSAGE to control the output of the STOP statement. If
# it is present in the environment, we should forward it to the tests, otherwise
# they might choke on warnings about signaling INEXACT exceptions.
if "NO_STOP_MESSAGE" in os.environ:
config.environment["NO_STOP_MESSAGE"] = os.environ["NO_STOP_MESSAGE"]
6 changes: 0 additions & 6 deletions Fortran/UnitTests/finalization/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
config.traditional_output = True
config.single_source = True

# Flang uses NO_STOP_MESSAGE to control the output of the STOP statement. If
# it is present in the environment, we should forward it to the tests, otherwise
# they might choke on warnings about signaling INEXACT exceptions.
if "NO_STOP_MESSAGE" in os.environ:
config.environment["NO_STOP_MESSAGE"] = os.environ["NO_STOP_MESSAGE"]
4 changes: 4 additions & 0 deletions Fortran/lit.local.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Flang uses NO_STOP_MESSAGE to control the output of the STOP statement.
# We should set it for running the tests, otherwise they might choke on warnings
# about signaling INEXACT exceptions.
config.environment["NO_STOP_MESSAGE"] = "1"