test: make output deterministic
This commit is contained in:
parent
2cba167634
commit
a5951babfc
|
|
@ -21,6 +21,7 @@ if ($ENV{VERILATOR_TEST_NO_ATTRIBUTES}) {
|
|||
|
||||
sub gen_compile_commands_json {
|
||||
my $json = JSON::PP->new->utf8->pretty;
|
||||
$json->canonical(); # Sort hash keys on ouptut
|
||||
|
||||
my $root_dir = abs_path("..");
|
||||
my $srcs_dir = abs_path("./t/t_dist_attributes");
|
||||
|
|
|
|||
Loading…
Reference in New Issue