mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
vsyasm: if -E is used, print command line as first line in error file.
Requested by: Brian Gladman svn path=/trunk/yasm/; revision=2300
This commit is contained in:
parent
47b7b364c7
commit
d7c5571bcb
1 changed files with 5 additions and 0 deletions
|
|
@ -565,9 +565,14 @@ main(int argc, char *argv[])
|
|||
|
||||
/* Open error file if specified. */
|
||||
if (error_filename) {
|
||||
int j;
|
||||
errfile = open_file(error_filename, "wt");
|
||||
if (!errfile)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
/* Print command line as first line in error file. */
|
||||
for (j=0; j<argc; j++)
|
||||
fprintf(errfile, "%s%c", argv[j], (j==argc-1) ? '\n' : ' ');
|
||||
}
|
||||
|
||||
/* If not already specified, default to win32 as the object format. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue