Skip to content

Commit e74857f

Browse files
committed
Updated text
1 parent fc52442 commit e74857f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tools/mkbuildoptglobals.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,6 @@ 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 + ")");
231229
if os.path.exists(build_target_fqfn) and \
232230
os.path.getsize(build_target_fqfn) == 0:
233231
return False
@@ -303,7 +301,7 @@ def extract_create_build_opt_file(globals_h_fqfn, file_name, build_opt_fqfn):
303301
print_err(" Nesting issue for embedded build.opt block in " + file_name + ":" + str(line_no))
304302
build_opt_error = True
305303
else:
306-
print_msg("--- additional command-line option: " + line)
304+
print_msg(" Add command-line option: " + line)
307305
build_opt.write(line + "\n")
308306
elif line.startswith(build_opt_signature):
309307
print_err(" build.opt signature block ignored, trailing character for embedded build.opt block in " + file_name + ":" + str(line_no))
@@ -320,7 +318,7 @@ def extract_create_build_opt_file(globals_h_fqfn, file_name, build_opt_fqfn):
320318
sys.exit(1)
321319
return False
322320
elif complete_comment:
323-
print_msg("Created compiler command-line options file " + build_opt_fqfn)
321+
print_msg(" Created compiler command-line options file " + build_opt_fqfn)
324322
build_opt.close()
325323
return complete_comment
326324

@@ -476,7 +474,10 @@ def main():
476474
print_msg("Clean build, created dir " + build_path_core)
477475

478476
if os.path.exists(source_globals_h_fqfn):
479-
print_msg("Using global defines from " + source_globals_h_fqfn)
477+
print_msg("Using global include from " + source_globals_h_fqfn)
478+
else:
479+
print_msg("Note: optional global include file '" + source_fqfn + "' does not exist");
480+
print_msg(" (please check " + docs_url + ")");
480481

481482
copy_create_build_file(source_globals_h_fqfn, globals_h_fqfn)
482483

0 commit comments

Comments
 (0)