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 2016/02/04 17:23:41 UTC

incubator-mynewt-newt git commit: Allow cflags to be spread on multiple lines.

Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/master ae715c939 -> bfd94849e


Allow cflags to be spread on multiple lines.


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/bfd94849
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/bfd94849
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/bfd94849

Branch: refs/heads/master
Commit: bfd94849ef2572f7382bc261a6b58cf8b5784e26
Parents: ae715c9
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Feb 4 08:23:01 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Feb 4 08:23:01 2016 -0800

----------------------------------------------------------------------
 newt/cli/egg.go | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/bfd94849/newt/cli/egg.go
----------------------------------------------------------------------
diff --git a/newt/cli/egg.go b/newt/cli/egg.go
index 70e6e3b..e7efd7b 100644
--- a/newt/cli/egg.go
+++ b/newt/cli/egg.go
@@ -602,7 +602,12 @@ func (egg *Egg) LoadDependencies(identities map[string]string,
 	egg.DownloadScript = GetStringIdentities(v, identities, "egg.downloadscript")
 	egg.DebugScript = GetStringIdentities(v, identities, "egg.debugscript")
 
-	egg.Cflags = GetStringIdentities(v, identities, "egg.cflags")
+	egg.Cflags = ""
+	cflags := GetStringSliceIdentities(v, identities, "egg.cflags")
+	for _, name := range cflags {
+		fmt.Printf("Egg %s Cflag >%s<\n", egg.Name, name)
+		egg.Cflags += " " + name
+	}
 	egg.Lflags = GetStringIdentities(v, identities, "egg.lflags")
 	egg.Aflags = GetStringIdentities(v, identities, "egg.aflags")