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/04/28 02:09:33 UTC

[06/32] incubator-mynewt-newt git commit: Generate .map file if compiler is so configured.

Generate .map file if compiler is so configured.


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

Branch: refs/heads/master
Commit: 0016c747e525d6a0331ffbcf3b318d3409b46dc2
Parents: 668f44e
Author: Christopher Collins <cc...@apache.org>
Authored: Fri Mar 25 15:37:42 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Fri Mar 25 15:37:42 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/0016c747/newt/toolchain/compiler.go
----------------------------------------------------------------------
diff --git a/newt/toolchain/compiler.go b/newt/toolchain/compiler.go
index f92ebc1..28be423 100644
--- a/newt/toolchain/compiler.go
+++ b/newt/toolchain/compiler.go
@@ -156,6 +156,12 @@ func (c *Compiler) load(compilerDir string, buildProfile string) error {
 		return err
 	}
 
+	c.ldMapFile, err = newtutil.GetBoolFeatures(v, features,
+		"compiler.ld.mapfile")
+	if err != nil {
+		return err
+	}
+
 	if len(c.info.Cflags) == 0 {
 		// Assume no Cflags implies an unsupported build profile.
 		return util.FmtNewtError("Compiler doesn't support build profile "+