@@ -226,8 +226,6 @@ def copy_create_build_file(source_fqfn, build_target_fqfn):
226
226
# files copied by `arduino-builder`.
227
227
copyfile (source_fqfn , build_target_fqfn )
228
228
else :
229
- print_msg ("Note: optional global include file '" + source_fqfn + "' does not exist" );
230
- print_msg (" (please check " + docs_url + ")" );
231
229
if os .path .exists (build_target_fqfn ) and \
232
230
os .path .getsize (build_target_fqfn ) == 0 :
233
231
return False
@@ -303,7 +301,7 @@ def extract_create_build_opt_file(globals_h_fqfn, file_name, build_opt_fqfn):
303
301
print_err (" Nesting issue for embedded build.opt block in " + file_name + ":" + str (line_no ))
304
302
build_opt_error = True
305
303
else :
306
- print_msg ("--- additional command-line option: " + line )
304
+ print_msg (" Add command-line option: " + line )
307
305
build_opt .write (line + "\n " )
308
306
elif line .startswith (build_opt_signature ):
309
307
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):
320
318
sys .exit (1 )
321
319
return False
322
320
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 )
324
322
build_opt .close ()
325
323
return complete_comment
326
324
@@ -476,7 +474,10 @@ def main():
476
474
print_msg ("Clean build, created dir " + build_path_core )
477
475
478
476
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 + ")" );
480
481
481
482
copy_create_build_file (source_globals_h_fqfn , globals_h_fqfn )
482
483
0 commit comments