With -V, print VERILATOR_BIN env var

This commit is contained in:
Wilson Snyder 2010-12-17 19:40:08 -05:00
parent 86db565a21
commit 0837e39787
3 changed files with 9 additions and 2 deletions

View File

@ -344,6 +344,10 @@ void V3Options::setenvStr(const string& envvar, const string& value, const strin
#endif
}
string V3Options::getenvPERL() {
return getenvStr("PERL","perl");
}
string V3Options::getenvSYSTEMC() {
string var = getenvStr("SYSTEMC","");
if (var == "" && string(DEFENV_SYSTEMC) != "") {
@ -1008,6 +1012,7 @@ void V3Options::showVersion(bool verbose) {
cout << " SYSTEMPERL = " << getenvStr("SYSTEMPERL","")<<endl;
cout << " SYSTEMPERL_INCLUDE = " << getenvStr("SYSTEMPERL_INCLUDE","")<<endl;
cout << " VERILATOR_ROOT = " << getenvStr("VERILATOR_ROOT","")<<endl;
cout << " VERILATOR_BIN = " << getenvStr("VERILATOR_BIN","")<<endl; // wrapper uses this
}
//======================================================================

View File

@ -323,7 +323,7 @@ class V3Options {
// Most of these may be built into the executable with --enable-defenv,
// see the README. If adding new variables, also see src/Makefile_obj.in
// Also add to V3Options::showVersion()
static string getenvPERL() { return getenvStr("PERL","perl"); }
static string getenvPERL();
static string getenvSYSTEMC();
static string getenvSYSTEMC_ARCH();
static string getenvSYSTEMPERL();

View File

@ -29,11 +29,13 @@
//**********************************************************************
//**** Functions
//* Set define if we have function: strdup (string)
// Set define if we have function: strdup (string)
#define HAVE_STRDUP 0
//**********************************************************************
//**** Headers
// Set define if we have header: <fcntl.h>
#define HAVE_FCNTL_H 0