Skip to content

Commit 1ab772a

Browse files
committed
Prints a deprecation warning for --io=runtime:posix
1 parent ef80584 commit 1ab772a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scorep/__main__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ def scorep_main(argv=None):
5050
no_instrumenter = True
5151
elif elem == "--noinstrumenter":
5252
no_instrumenter = True
53+
elif elem == "--io=runtime:posix" or elem == "--io=posix":
54+
if "SCOREP_IO_POSIX" in os.environ:
55+
print_err("scorep: Warning: The option '--io=runtime:posix' is deprecated.")
56+
print_err(" Please set the environment variable 'SCOREP_IO_POSIX=true' instead.")
57+
else
58+
print_err("scorep: The option '--io=runtime:posix' is deprecated. ")
59+
print_err(" The environment variable 'SCOREP_IO_POSIX=true' is set and will be used.")
60+
os.environ["SCOREP_IO_POSIX"] = "true"
5361
elif "--instrumenter-type" in elem:
5462
param = elem.split("=")
5563
instrumenter_type = param[1]

0 commit comments

Comments
 (0)