Skip to content

Commit 985b2c9

Browse files
authored
Add macro -DARDUINO_LIB_DISCOVERY_PHASE during lib discovery phase (arduino#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

legacy/builder/gcc_preproc_runner.go

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy