Make charmonizer print compiler command if verbosity >= 2

Update charmonizer.c manually, cherry-picking Charmonizer commit
bdc7a98.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/0a905080
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/0a905080
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/0a905080

Branch: refs/heads/0.4
Commit: 0a905080e1ff8464f4062bcd7771255ec83ee80a
Parents: 03b9124
Author: Nick Wellnhofer <wellnho...@aevum.de>
Authored: Thu Jan 21 17:49:04 2016 +0100
Committer: Nick Wellnhofer <wellnho...@aevum.de>
Committed: Thu Jan 21 17:49:04 2016 +0100

----------------------------------------------------------------------
 compiler/common/charmonizer.c | 2 ++
 runtime/common/charmonizer.c  | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/0a905080/compiler/common/charmonizer.c
----------------------------------------------------------------------
diff --git a/compiler/common/charmonizer.c b/compiler/common/charmonizer.c
index 74d5fa3..7009af9 100644
--- a/compiler/common/charmonizer.c
+++ b/compiler/common/charmonizer.c
@@ -2763,6 +2763,7 @@ chaz_CC_compile_exe(const char *source_path, const char 
*exe_name,
         chaz_OS_run_quietly(command);
     }
     else {
+        printf("%s\n", command);
         system(command);
     }
 
@@ -2821,6 +2822,7 @@ chaz_CC_compile_obj(const char *source_path, const char 
*obj_name,
         chaz_OS_run_quietly(command);
     }
     else {
+        printf("%s\n", command);
         system(command);
     }
 

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/0a905080/runtime/common/charmonizer.c
----------------------------------------------------------------------
diff --git a/runtime/common/charmonizer.c b/runtime/common/charmonizer.c
index 961ad1b..b81c3fd 100644
--- a/runtime/common/charmonizer.c
+++ b/runtime/common/charmonizer.c
@@ -2763,6 +2763,7 @@ chaz_CC_compile_exe(const char *source_path, const char 
*exe_name,
         chaz_OS_run_quietly(command);
     }
     else {
+        printf("%s\n", command);
         system(command);
     }
 
@@ -2821,6 +2822,7 @@ chaz_CC_compile_obj(const char *source_path, const char 
*obj_name,
         chaz_OS_run_quietly(command);
     }
     else {
+        printf("%s\n", command);
         system(command);
     }
 

Reply via email to