You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2023/03/06 08:49:25 UTC
[mynewt-newt] 04/04: target: Remove target.compiler override
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
commit c259ebae2336de4b22cc485258ab43692f923646
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Fri Mar 3 14:26:22 2023 +0100
target: Remove target.compiler override
This can now be overriden by bsp.compiler.
---
newt/builder/targetbuild.go | 3 ---
newt/target/target.go | 4 ----
2 files changed, 7 deletions(-)
diff --git a/newt/builder/targetbuild.go b/newt/builder/targetbuild.go
index 98b96695..8f109306 100644
--- a/newt/builder/targetbuild.go
+++ b/newt/builder/targetbuild.go
@@ -77,9 +77,6 @@ func NewTargetTester(target *target.Target,
}
compilerName := bspPkg.CompilerName
- if len(target.CompilerName) > 0 {
- compilerName = target.CompilerName
- }
compilerPkg, err := project.GetProject().ResolvePackage(
bspPkg.Repo(), compilerName)
diff --git a/newt/target/target.go b/newt/target/target.go
index ef91c73b..539913b5 100644
--- a/newt/target/target.go
+++ b/newt/target/target.go
@@ -46,7 +46,6 @@ type Target struct {
BspName string
AppName string
LoaderName string
- CompilerName string
BuildProfile string
HeaderSize uint32
KeyFile string
@@ -102,9 +101,6 @@ func (target *Target) Load(basePkg *pkg.LocalPackage) error {
target.LoaderName, err = yc.GetValString("target.loader", nil)
util.OneTimeWarningError(err)
- target.CompilerName, err = yc.GetValString("target.compiler", nil)
- util.OneTimeWarningError(err)
-
target.BuildProfile, err = yc.GetValString("target.build_profile", nil)
util.OneTimeWarningError(err)