diff options
Diffstat (limited to 'build2/test')
-rw-r--r-- | build2/test/script/parser.cxx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/build2/test/script/parser.cxx b/build2/test/script/parser.cxx index e714665..e3194cb 100644 --- a/build2/test/script/parser.cxx +++ b/build2/test/script/parser.cxx @@ -1270,10 +1270,20 @@ namespace build2 { string n (l.file->string ()); n += ':'; - n += to_string (l.line); - n += ':'; - n += to_string (l.column); - n += ": ("; + + if (!ops.no_line ()) + { + n += to_string (l.line); + n += ':'; + + if (!ops.no_column ()) + { + n += to_string (l.column); + n += ':'; + } + } + + n += " ("; n += s; n += ')'; name = path (move (n)); |