Skip to content

Commit 4e56760

Browse files
committed
Fix regression introduced in 310f2e2
related to #134 Signed-off-by: Cristian Maglie <[email protected]>
1 parent 8d62200 commit 4e56760

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: src/arduino.cc/builder/gcc_preproc_runner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func prepareGCCPreprocRecipeProperties(ctx *types.Context, sourceFilePath string
108108
targetFilePath = filepath.Join(preprocPath, targetFilePath)
109109
}
110110

111-
properties := ctx.BuildProperties
111+
properties := ctx.BuildProperties.Clone()
112112
properties[constants.BUILD_PROPERTIES_SOURCE_FILE] = sourceFilePath
113113
properties[constants.BUILD_PROPERTIES_PREPROCESSED_FILE_PATH] = targetFilePath
114114

Diff for: src/arduino.cc/builder/includes_finder_with_gcc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type IncludesFinderWithGCC struct {
4545
}
4646

4747
func (s *IncludesFinderWithGCC) Run(ctx *types.Context) error {
48-
buildProperties := ctx.BuildProperties
48+
buildProperties := ctx.BuildProperties.Clone()
4949
verbose := ctx.Verbose
5050
logger := ctx.GetLogger()
5151

Diff for: src/arduino.cc/builder/recipe_runner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (s *RecipeByPrefixSuffixRunner) Run(ctx *types.Context) error {
5050
logger.Fprintln(os.Stdout, constants.LOG_LEVEL_DEBUG, constants.MSG_LOOKING_FOR_RECIPES, s.Prefix, s.Suffix)
5151
}
5252

53-
buildProperties := ctx.BuildProperties
53+
buildProperties := ctx.BuildProperties.Clone()
5454
verbose := ctx.Verbose
5555

5656
recipes := findRecipes(buildProperties, s.Prefix, s.Suffix)

0 commit comments

Comments
 (0)