mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-24 16:35:40 +08:00
asm: Restore showing output for preproc mode in stdout
Before the commit 81b62b9f54
we've been always putting -E,-e results into stdout if no
output file provded. So bring this backward compatibility
back.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
17ffc1704b
commit
69bb052e00
12
asm/nasm.c
12
asm/nasm.c
@ -481,9 +481,15 @@ int main(int argc, char **argv)
|
||||
if (ofmt->stdmac)
|
||||
preproc->extra_stdmac(ofmt->stdmac);
|
||||
|
||||
/* no output file name? */
|
||||
if (!outname)
|
||||
outname = filename_set_extension(inname, ofmt->extension);
|
||||
/*
|
||||
* If no output file name provided and this
|
||||
* is not preprocess mode, we're perfectly
|
||||
* fine to output into stdout
|
||||
*/
|
||||
if (!outname) {
|
||||
if (!(operating_mode & OP_PREPROCESS))
|
||||
outname = filename_set_extension(inname, ofmt->extension);
|
||||
}
|
||||
|
||||
/* define some macros dependent of command-line */
|
||||
define_macros_late();
|
||||
|
Loading…
Reference in New Issue
Block a user