Skip to content

Commit a66ab1e

Browse files
author
Daniel Kroening
committed
CL prints the name of the file that's compiled onto stdout
1 parent 0698a5f commit a66ab1e

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
some_funny_file.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^some_funny_file.c$
7+
--
8+
^warning: ignoring
9+
^CONVERSION ERROR$
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
int main()
2+
{
3+
}

src/goto-cc/compile.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,9 @@ bool compilet::compile()
391391
source_files.pop_front();
392392

393393
// Visual Studio always prints the name of the file it's doing
394+
// onto stdout. The name of the directory is stripped.
394395
if(echo_file_name)
395-
status() << file_name << eom;
396+
std::cout << get_base_name(file_name, false) << '\n' << std::flush;
396397

397398
bool r=parse_source(file_name); // don't break the program!
398399

0 commit comments

Comments
 (0)