ref: 29c63f3c16f00196fc407aca4fc8e9a935953bc4
parent: a13c17546089254300d24c107065b0f584987069
author: Quentin Rameau <quinq@fifth.space>
date: Fri Jun 24 21:42:43 EDT 2016
[driver] add g flag
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -355,13 +355,13 @@
{
die("usage: scc [-D def[=val]]... [-U def]... [-I dir]... "
"[-L dir]... [-l dir]...\n"
- " [-ksw] [-m arch] [-E|-S] [-o outfile] file...\n"
+ " [-gksw] [-m arch] [-E|-S] [-o outfile] file...\n"
" scc [-D def[=val]]... [-U def]... [-I dir]... "
"[-L dir]... [-l dir]...\n"
- " [-ksw] [-m arch] [-E|-S] -c file...\n"
+ " [-gksw] [-m arch] [-E|-S] -c file...\n"
" scc [-D def[=val]]... [-U def]... [-I dir]... "
"[-L dir]... [-l dir]...\n"
- " [-ksw] [-m arch] -c -o outfile file");
+ " [-gksw] [-m arch] -c -o outfile file");
}
int
@@ -397,6 +397,10 @@
break;
case 'c':
cflag = 1;
+ break;
+ case 'g':
+ addarg(AS, "-g");
+ addarg(LD, "-g");
break;
case 'k':
kflag = 1;