Skip to content

Commit 70f45cc

Browse files
facchinmcmaglie
authored andcommitted
Fix merge conflicts
1 parent cfc4fd0 commit 70f45cc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

create_cmake_rule.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func canExportCmakeProject(ctx *types.Context) bool {
206206
}
207207

208208
func extractCompileFlags(ctx *types.Context, receipe string, defines, libs, linkerflags, linkDirectories *[]string, logger i18n.Logger) {
209-
command, _ := builder_utils.PrepareCommandForRecipe(ctx.BuildProperties, receipe, true, false, false, logger)
209+
command, _ := builder_utils.PrepareCommandForRecipe(ctx, ctx.BuildProperties, receipe, true)
210210

211211
for _, arg := range command.Args {
212212
if strings.HasPrefix(arg, "-D") {

preprocess_sketch.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ type PreprocessSketch struct{}
4848
func (s *PreprocessSketch) Run(ctx *types.Context) error {
4949
sourceFile := filepath.Join(ctx.SketchBuildPath, filepath.Base(ctx.Sketch.MainFile.Name)+".cpp")
5050
commands := []types.Command{
51-
&GCCPreprocRunner{SourceFilePath: sourceFile, TargetFileName: constants.FILE_CTAGS_TARGET_FOR_GCC_MINUS_E, Includes: ctx.IncludeFolders},
5251
&ArduinoPreprocessorRunner{},
5352
}
5453

@@ -58,6 +57,8 @@ func (s *PreprocessSketch) Run(ctx *types.Context) error {
5857
commands = append(commands, &SketchSaver{})
5958
}
6059

60+
GCCPreprocRunner(ctx, sourceFile, constants.FILE_CTAGS_TARGET_FOR_GCC_MINUS_E, ctx.IncludeFolders)
61+
6162
for _, command := range commands {
6263
PrintRingNameIfDebug(ctx, command)
6364
err := command.Run(ctx)
@@ -73,7 +74,7 @@ type ArduinoPreprocessorRunner struct{}
7374

7475
func (s *ArduinoPreprocessorRunner) Run(ctx *types.Context) error {
7576
buildProperties := ctx.BuildProperties
76-
targetFilePath := ctx.FileToRead
77+
targetFilePath := constants.FILE_CTAGS_TARGET_FOR_GCC_MINUS_E
7778
logger := ctx.GetLogger()
7879

7980
properties := buildProperties.Clone()

0 commit comments

Comments
 (0)