Skip to content

Commit 985b2c9

Browse files
authored
Add macro -DARDUINO_LIB_DISCOVERY_PHASE during lib discovery phase (#633)
This information can be used by the core to turn off certain heavyweight headers (that don't need to be discovered anyway)
1 parent 8759bf4 commit 985b2c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: legacy/builder/gcc_preproc_runner.go

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ func prepareGCCPreprocRecipeProperties(ctx *types.Context, sourceFilePath *paths
7777
// to create a /dev/null.d dependency file, which won't work.
7878
cmd.Args = utils.Filter(cmd.Args, func(a string) bool { return a != "-MMD" })
7979

80+
cmd.Args = append(cmd.Args, "-DARDUINO_LIB_DISCOVERY_PHASE")
81+
8082
return cmd, nil
8183
}
8284

0 commit comments

Comments
 (0)