diff options
author | Dave Brolley <brolley@redhat.com> | 2008-08-20 14:41:38 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2008-08-20 14:41:38 -0400 |
commit | dce882537b3a31d0b4fa2ebac0d4984ed6acd302 (patch) | |
tree | 7a740f602f05341e3022fd021435446152444336 /buildrun.cxx | |
parent | 1598733bd611536ea7a708c161bc4bbfbf25569c (diff) | |
parent | ef4042bd5adb8062c31789a9786bf558f5f11e9e (diff) | |
download | systemtap-steved-dce882537b3a31d0b4fa2ebac0d4984ed6acd302.tar.gz systemtap-steved-dce882537b3a31d0b4fa2ebac0d4984ed6acd302.tar.xz systemtap-steved-dce882537b3a31d0b4fa2ebac0d4984ed6acd302.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'buildrun.cxx')
-rw-r--r-- | buildrun.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildrun.cxx b/buildrun.cxx index 159e1c6e..a265e4db 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -78,8 +78,12 @@ compile_pass (systemtap_session& s) if (s.verbose > 3) superverbose = "set -x;"; + string redirecterrors = "> /dev/null 2>&1"; + if (s.verbose > 6) + redirecterrors = ""; + o << "stap_check_gcc = $(shell " << superverbose << " if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo \"$(1)\"; else echo \"$(2)\"; fi)" << endl; - o << "stap_check_build = $(shell " << superverbose << " if $(CC) $(KBUILD_CPPFLAGS) $(CPPFLAGS) $(KBUILD_CFLAGS) $(CFLAGS_KERNEL) $(EXTRA_CFLAGS) $(CFLAGS) -DKBUILD_BASENAME=\\\"" << s.module_name << "\\\" -Werror -S -o /dev/null -xc $(1) > /dev/null 2>&1 ; then echo \"$(2)\"; else echo \"$(3)\"; fi)" << endl; + o << "stap_check_build = $(shell " << superverbose << " if $(CC) $(KBUILD_CPPFLAGS) $(CPPFLAGS) $(KBUILD_CFLAGS) $(CFLAGS_KERNEL) $(EXTRA_CFLAGS) $(CFLAGS) -DKBUILD_BASENAME=\\\"" << s.module_name << "\\\" -Werror -S -o /dev/null -xc $(1) " << redirecterrors << " ; then echo \"$(2)\"; else echo \"$(3)\"; fi)" << endl; o << "SYSTEMTAP_RUNTIME = \"" << s.runtime_path << "\"" << endl; |