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/03/15 02:02:49 UTC
incubator-mynewt-newt git commit: Display error in case of #error
directive.
Repository: incubator-mynewt-newt
Updated Branches:
refs/heads/develop e66fca4bf -> cc1c612b0
Display error in case of #error directive.
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/cc1c612b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/cc1c612b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/cc1c612b
Branch: refs/heads/develop
Commit: cc1c612b0de11f66ba740503dd2a52dc930ce9bf
Parents: e66fca4
Author: Christopher Collins <cc...@apache.org>
Authored: Mon Mar 14 18:02:30 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Mon Mar 14 18:02:30 2016 -0700
----------------------------------------------------------------------
newt/cli/project_cmds.go | 2 +-
newt/toolchain/compiler.go | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/cc1c612b/newt/cli/project_cmds.go
----------------------------------------------------------------------
diff --git a/newt/cli/project_cmds.go b/newt/cli/project_cmds.go
index ba3288e..79ea263 100644
--- a/newt/cli/project_cmds.go
+++ b/newt/cli/project_cmds.go
@@ -52,7 +52,7 @@ func newRunCmd(cmd *cobra.Command, args []string) {
dl.User = "apache"
dl.Repo = "incubator-mynewt-blinky"
- dir, err := dl.DownloadRepo("develop")
+ dir, err := dl.DownloadRepo("master")
if err != nil {
NewtUsage(cmd, err)
}
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/cc1c612b/newt/toolchain/compiler.go
----------------------------------------------------------------------
diff --git a/newt/toolchain/compiler.go b/newt/toolchain/compiler.go
index 1c6b827..f67c5c2 100644
--- a/newt/toolchain/compiler.go
+++ b/newt/toolchain/compiler.go
@@ -275,9 +275,9 @@ func (c *Compiler) GenDepsForFile(file string) error {
cmd = c.ccPath + " " + c.cflagsString() + " " + c.includesString() +
" -MM -MG " + file + " > " + depFile
- _, err = util.ShellCommand(cmd)
+ o, err := util.ShellCommand(cmd)
if err != nil {
- return err
+ return util.NewNewtError(string(o))
}
// Append the extra dependencies (.yml files) to the .d file.