diff extra/as @ 403:f5a88f147fae

Update "as" wrapper for gcc6809 to use new source format Enable pragma newsource for the "as" wrapper in extra/ to allow preprocessed asm to work as expected with macro expansions.
author William Astle <lost@l-w.ca>
date Thu, 15 Oct 2015 20:20:20 -0600
parents 84eb35251849
children c41d72a58ef6
line wrap: on
line diff
--- a/extra/as	Wed Oct 14 20:49:41 2015 -0600
+++ b/extra/as	Thu Oct 15 20:20:20 2015 -0600
@@ -126,7 +126,9 @@
 # --pragma=undefextern causes undefined symbols to be assumed external
 # --pragma=cescapes allows C escape syntax in strings
 #echo lwasm -o "$output_file" $options --obj --pragma=undefextern --pragma=cescapes $input_file
-lwasm -o "$output_file" $options --obj --pragma=undefextern --pragma=cescapes --pragma=importundefexport $input_file
+# pragma=newsource allows preprocessed asm files with macro expansion to assemble properly even
+# when the preprocessor interproses extra spaces
+lwasm -o "$output_file" $options --obj --pragma=undefextern --pragma=cescapes --pragma=importundefexport --pragma=newsource $input_file
 rc=$?
 
 # OK, see if the assembler succeeded or not.