Skip to content

Commit 87f06d7

Browse files
committed
Refactored custom global properties handling
1 parent 100f029 commit 87f06d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: arduino/cores/packagemanager/package_manager.go

+2
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ func (pme *Explorer) ResolveFQBN(fqbn *cores.FQBN) (
397397
buildProperties.Set("software", "ARDUINO")
398398
}
399399

400+
buildProperties.Merge(pme.GetCustomGlobalProperties())
401+
400402
return targetPackage, platformRelease, board, buildProperties, buildPlatformRelease, nil
401403
}
402404

Diff for: legacy/builder/setup_build_properties.go

-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ func (s *SetupBuildProperties) Run(ctx *types.Context) error {
4747

4848
buildProperties.SetPath("build.source.path", ctx.Sketch.FullPath)
4949

50-
buildProperties.Merge(ctx.PackageManager.GetCustomGlobalProperties())
51-
5250
keychainProp := buildProperties.ContainsKey("build.keys.keychain")
5351
signProp := buildProperties.ContainsKey("build.keys.sign_key")
5452
encryptProp := buildProperties.ContainsKey("build.keys.encrypt_key")

0 commit comments

Comments
 (0)