shithub: scc

Download patch

ref: bc7be3e7b07c930573d546987c92f432474b6f07
parent: 9f1312826dfbb23fa3f620cc606389515e7375e7
author: Quentin Rameau <quinq@fifth.space>
date: Wed Jun 29 19:50:53 EDT 2016

[driver] fix filename output with as

We would use outfile for as whenever it was set, regardless of the
output target.

--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -184,7 +184,8 @@
 		addarg(tool, t->outfile);
 		break;
 	case AS:
-		t->outfile = outfile ? outfile : outfilename(infile, "o");
+		t->outfile = (cflag && outfile) ? outfile :
+		             outfilename(infile, "o");
 		addarg(tool, t->outfile);
 		break;
 	case LD: