You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -110,6 +111,7 @@ var libraryDiscoveryRecursionDepthFlag *int
110
111
varwarningsLevelFlag*string
111
112
varloggerFlag*string
112
113
varversionFlag*bool
114
+
varvidPidFlag*string
113
115
114
116
funcinit() {
115
117
compileFlag=flag.Bool(FLAG_COMPILE, false, "compiles the given sketch")
@@ -128,6 +130,7 @@ func init() {
128
130
loggerFlag=flag.String(FLAG_LOGGER, FLAG_LOGGER_HUMAN, "Sets type of logger. Available values are '"+FLAG_LOGGER_HUMAN+"', '"+FLAG_LOGGER_MACHINE+"'")
129
131
libraryDiscoveryRecursionDepthFlag=flag.Int(FLAG_LIB_DISCOVERY_RECURSION_PATH, builder.DEFAULT_LIBRARY_DISCOVERY_RECURSION_DEPTH, "How deep should library discovery go down looking for included libraries")
130
132
versionFlag=flag.Bool(FLAG_VERSION, false, "prints version and exits")
133
+
vidPidFlag=flag.String(FLAG_VID_PID, "", "specify to use vid/pid specific build properties, as defined in boards.txt")
131
134
}
132
135
133
136
funcmain() {
@@ -248,6 +251,10 @@ func main() {
248
251
}
249
252
context[constants.CTX_BUILD_PATH] =buildPath
250
253
254
+
if*vidPidFlag!="" {
255
+
context[constants.CTX_VIDPID] =*vidPidFlag
256
+
}
257
+
251
258
ifcompile&&flag.NArg() ==0 {
252
259
fmt.Fprintln(os.Stderr, "Last parameter must be the sketch to compile")
0 commit comments