You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/03/06 21:44:16 UTC
[16/41] incubator-mynewt-newt git commit: MYNEWT-557 Warning override
of undefined settings Added support to newt build command to print out
warning message for override of undefined settings.
MYNEWT-557 Warning override of undefined settings
Added support to newt build command to print out warning message for override of undefined settings.
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/c2e1b6c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/c2e1b6c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/c2e1b6c2
Branch: refs/heads/mynewt_1_0_0
Commit: c2e1b6c23ef06b21f79ac6c14aad956028872cca
Parents: e5b84cf
Author: cwanda <wa...@happycity.com>
Authored: Fri Feb 3 16:45:58 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Mar 6 13:35:36 2017 -0800
----------------------------------------------------------------------
newt/builder/targetbuild.go | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/c2e1b6c2/newt/builder/targetbuild.go
----------------------------------------------------------------------
diff --git a/newt/builder/targetbuild.go b/newt/builder/targetbuild.go
index 64710db..b8ac724 100644
--- a/newt/builder/targetbuild.go
+++ b/newt/builder/targetbuild.go
@@ -188,6 +188,13 @@ func (t *TargetBuilder) validateAndWriteCfg() error {
return util.NewNewtError(errText)
}
+ warningText := strings.TrimSpace(t.res.WarningText())
+ if warningText != "" {
+ for _, line := range strings.Split(warningText, "\n") {
+ log.Warn(line)
+ }
+ }
+
if err := syscfg.EnsureWritten(t.res.Cfg,
GeneratedIncludeDir(t.target.Name())); err != nil {