1
0
mirror of https://github.com/cclassic/model-ghdl synced 2024-11-29 09:13:28 +01:00

Extra arguments now work

This commit is contained in:
Makise Kurisu 2015-03-22 11:10:30 +01:00
parent 2fd87d4baf
commit 7df8aa2ccc
2 changed files with 5 additions and 12 deletions

View File

@ -149,16 +149,12 @@ int main(int argc, char **argv)
cerr << "INFO: Unknown command line opt: " << argv[i] << endl; cerr << "INFO: Unknown command line opt: " << argv[i] << endl;
} }
else { else {
break; // Rest are VHDL input files vhdl.append(argv[i]);
vhdl.append(" ");
} }
} }
} }
for (; i < argc; ++i) {
vhdl.append(argv[i]);
vhdl.append(" ");
}
#ifdef DEBUG_EN #ifdef DEBUG_EN
cout << "\n\nVCOM CALL PARSED:" << endl; cout << "\n\nVCOM CALL PARSED:" << endl;
cout << "\twork=" << work << endl; cout << "\twork=" << work << endl;

View File

@ -112,6 +112,7 @@ int main(int argc, char **argv) {
} }
else if (GETOPT("-ghdl")) { else if (GETOPT("-ghdl")) {
ghdlargs = argv[i]; ghdlargs = argv[i];
cerr << "GHDARGS=" << argv[i];
} }
else if (GETOPT("-gtkwave")) { else if (GETOPT("-gtkwave")) {
wvargs = argv[i]; wvargs = argv[i];
@ -121,16 +122,12 @@ int main(int argc, char **argv) {
cerr << "INFO: Unknown command line opt: " << argv[i] << endl; cerr << "INFO: Unknown command line opt: " << argv[i] << endl;
} }
else { else {
break; top.append(argv[i]);
top.append(" ");
} }
} }
} }
for (; i < argc; ++i) {
top.append(argv[i]);
top.append(" ");
}
// -gui work.toplevel(RTL) // -gui work.toplevel(RTL)
string temp = ""; string temp = "";