mirror of
https://github.com/verilator/verilator.git
synced 2025-04-16 01:26:54 +00:00
With -V, print VERILATOR_BIN env var
This commit is contained in:
parent
86db565a21
commit
0837e39787
@ -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
|
||||
}
|
||||
|
||||
//======================================================================
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user