Fix make test with no VERILATOR_ROOT, bug1494.

This commit is contained in:
Wilson Snyder 2019-09-01 11:15:42 -04:00
parent 4c0f95af10
commit 3bc260c55d
2 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
* Verilator 4.019 devel
**** Fix make test with no VERILATOR_ROOT, bug1494. [Ahmed El-Mahmoudy]
* Verilator 4.018 2019-08-29

View File

@ -6,6 +6,12 @@ eval 'exec perl -wS $0 ${1+"$@"}'
require 5.006_001;
use Cwd;
BEGIN {
if (!$ENV{VERILATOR_ROOT} && -x "../bin/verilator") {
$ENV{VERILATOR_ROOT} = Cwd::getcwd()."/..";
}
}
use Getopt::Long;
use IO::File;
use Pod::Usage;