diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-10-08 13:47:14 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-11-02 14:32:59 +0000 |
commit | 07ec19cdabfd832072fcd25e917a845506d34977 (patch) | |
tree | 2c33e4d5b1f7645697597bda3e6175b9afca8f0f | |
parent | 7156b6f84e9215b9c157ca57d3db02352d1e99bd (diff) |
scripts: Echo commands to be executed if V=1 is set
This should make debugging of the compiler exec chain a little easier.
-rwxr-xr-x | scripts/tartan | 14 | ||||
-rw-r--r-- | scripts/tartan-build | 6 |
2 files changed, 19 insertions, 1 deletions
diff --git a/scripts/tartan b/scripts/tartan index d7af592..dbb89e1 100755 --- a/scripts/tartan +++ b/scripts/tartan @@ -133,6 +133,15 @@ fi if [ "$include_plugin_flags" = "1" ]; then # Exec Clang with the plugin loaded. + if [ "$V" = "1" ]; then + echo "$real_clang" \ + ${argv[@]} \ + ${add_plugin[@]} \ + ${plugin_options[@]} \ + $GNOME_CLANG_CFLAGS \ + $TARTAN_CFLAGS + fi + exec "$real_clang" \ ${argv[@]} \ ${add_plugin[@]} \ @@ -141,6 +150,11 @@ if [ "$include_plugin_flags" = "1" ]; then $TARTAN_CFLAGS else # Pass through to Clang with the arguments unchanged. + if [ "$V" = "1" ]; then + echo "$real_clang" \ + ${argv[@]} + fi + exec "$real_clang" \ ${argv[@]} fi diff --git a/scripts/tartan-build b/scripts/tartan-build index 8c19ca1..840bcbc 100644 --- a/scripts/tartan-build +++ b/scripts/tartan-build @@ -7,4 +7,8 @@ else exit 1 fi -exec scan-build --use-analyzer=$tartan "${@}" +if [ "$V" = "1" ]; then + echo scan-build --use-analyzer "$tartan" "${@}" +fi + +exec scan-build --use-analyzer "$tartan" "${@}" |