Skip to content

Commit 02add35

Browse files
authored
Create mkbuildoptglobals.py
When global header file does not exist, this print makes it easier for user to create the header file by providing its name and documentation pointer.
1 parent b8e591b commit 02add35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/mkbuildoptglobals.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ def copy_create_build_file(source_fqfn, build_target_fqfn):
226226
# files copied by `arduino-builder`.
227227
copyfile(source_fqfn, build_target_fqfn)
228228
else:
229+
print_msg("Note: optional global include file '" + source_fqfn + "' does not exist");
230+
print_msg(" (please check " + docs_url + ")");
229231
if os.path.exists(build_target_fqfn) and \
230232
os.path.getsize(build_target_fqfn) == 0:
231233
return False

0 commit comments

Comments
 (0)