You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/04/21 00:55:15 UTC

[2/2] incubator-mynewt-newt git commit: newt tool - Build failures were displaying twice.

newt tool - Build failures were displaying twice.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/36c23b4d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/36c23b4d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/36c23b4d

Branch: refs/heads/develop
Commit: 36c23b4dcdea8ddd871078bcf5bad8630d0a2765
Parents: 21ca20a
Author: Christopher Collins <cc...@apache.org>
Authored: Wed Apr 20 15:54:53 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Wed Apr 20 15:54:53 2016 -0700

----------------------------------------------------------------------
 newt/toolchain/compiler.go | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/36c23b4d/newt/toolchain/compiler.go
----------------------------------------------------------------------
diff --git a/newt/toolchain/compiler.go b/newt/toolchain/compiler.go
index 6cc6b3b..c7a5d21 100644
--- a/newt/toolchain/compiler.go
+++ b/newt/toolchain/compiler.go
@@ -347,9 +347,8 @@ func (c *Compiler) CompileFile(file string, compilerType int) error {
 		return util.NewNewtError("Unknown compiler type")
 	}
 
-	rsp, err := util.ShellCommand(cmd)
+	_, err = util.ShellCommand(cmd)
 	if err != nil {
-		util.StatusMessage(util.VERBOSITY_QUIET, string(rsp))
 		return err
 	}
 
@@ -546,9 +545,8 @@ func (c *Compiler) CompileBinary(dstFile string, options map[string]bool,
 		dstFile, objList)
 
 	cmd := c.CompileBinaryCmd(dstFile, options, objFiles)
-	rsp, err := util.ShellCommand(cmd)
+	_, err := util.ShellCommand(cmd)
 	if err != nil {
-		util.StatusMessage(util.VERBOSITY_QUIET, string(rsp))
 		return err
 	}
 
@@ -707,9 +705,8 @@ func (c *Compiler) CompileArchive(archiveFile string) error {
 	}
 
 	cmd := c.CompileArchiveCmd(archiveFile, objFiles)
-	rsp, err := util.ShellCommand(cmd)
+	_, err = util.ShellCommand(cmd)
 	if err != nil {
-		util.StatusMessage(util.VERBOSITY_QUIET, string(rsp))
 		return err
 	}