@@ -39,21 +39,21 @@ func GCC(sourceFilePath *paths.Path, targetFilePath *paths.Path, includes paths.
3939 includesStrings := f .Map (includes .AsStrings (), utils .WrapWithHyphenI )
4040 gccBuildProperties .Set ("includes" , strings .Join (includesStrings , " " ))
4141
42- const GCC_PATTERN_PROPERTY = "recipe.preproc.macros"
43- if gccBuildProperties .Get (GCC_PATTERN_PROPERTY ) == "" {
42+ const gccPreprocRecipeProperty = "recipe.preproc.macros"
43+ if gccBuildProperties .Get (gccPreprocRecipeProperty ) == "" {
4444 // autogenerate preprocess macros recipe from compile recipe
4545 preprocPattern := gccBuildProperties .Get ("recipe.cpp.o.pattern" )
4646 // add {preproc.macros.flags} to {compiler.cpp.flags}
4747 preprocPattern = strings .Replace (preprocPattern , "{compiler.cpp.flags}" , "{compiler.cpp.flags} {preproc.macros.flags}" , 1 )
4848 // replace "{object_file}" with "{preprocessed_file_path}"
4949 preprocPattern = strings .Replace (preprocPattern , "{object_file}" , "{preprocessed_file_path}" , 1 )
5050
51- gccBuildProperties .Set (GCC_PATTERN_PROPERTY , preprocPattern )
51+ gccBuildProperties .Set (gccPreprocRecipeProperty , preprocPattern )
5252 }
5353
54- pattern := gccBuildProperties .Get (GCC_PATTERN_PROPERTY )
54+ pattern := gccBuildProperties .Get (gccPreprocRecipeProperty )
5555 if pattern == "" {
56- return nil , nil , errors .Errorf (tr ("%s pattern is missing" ), GCC_PATTERN_PROPERTY )
56+ return nil , nil , errors .Errorf (tr ("%s pattern is missing" ), gccPreprocRecipeProperty )
5757 }
5858
5959 commandLine := gccBuildProperties .ExpandPropsInString (pattern )
0 commit comments