Skip to content

Commit e8a3e61

Browse files
committed
move text to constants.go
1 parent a38e7bd commit e8a3e61

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: legacy/builder/constants/constants.go

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const MSG_USING_CACHED_INCLUDES = "Using cached library dependencies for file: {
124124
const MSG_WARNING_LIB_INVALID_CATEGORY = "WARNING: Category '{0}' in library {1} is not valid. Setting to '{2}'"
125125
const MSG_WARNING_PLATFORM_OLD_VALUES = "Warning: platform.txt from core '{0}' contains deprecated {1}, automatically converted to {2}. Consider upgrading this core."
126126
const MSG_WARNING_SPURIOUS_FILE_IN_LIB = "WARNING: Spurious {0} folder in '{1}' library"
127+
const MSG_ADDITIONAL_OPTIONS = "Additional compiler options provided by user sketch: {0}"
127128
const PACKAGE_NAME = "name"
128129
const PACKAGE_TOOLS = "tools"
129130
const PLATFORM_ARCHITECTURE = "architecture"

Diff for: legacy/builder/phases/libraries_builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (s *LibrariesBuilder) Run(ctx *types.Context) error {
4545
}
4646

4747
if len(ctx.Arduifines) > 0 {
48-
ctx.GetLogger().Fprintln(os.Stdout, constants.LOG_LEVEL_DEBUG, "Additional compiler options provided by User sketch: "+ctx.Arduifines)
48+
ctx.GetLogger().Println(constants.LOG_LEVEL_DEBUG, constants.MSG_ADDITIONAL_OPTIONS, ctx.Arduifines)
4949
}
5050

5151
objectFiles, err := compileLibraries(ctx, libs, librariesBuildPath, buildProperties, includes)

0 commit comments

Comments
 (0)