Mercurial > hg > Members > menikon > CbC_xv6
diff src/gearsTools/generate_context.pl @ 181:f9df567f7f2d
tweak_gen_context.pl
author | anatofuz |
---|---|
date | Mon, 20 Jan 2020 16:44:55 +0900 |
parents | 239bd73abac6 |
children | 49a70efcbd3a |
line wrap: on
line diff
--- a/src/gearsTools/generate_context.pl Mon Jan 20 11:24:39 2020 +0900 +++ b/src/gearsTools/generate_context.pl Mon Jan 20 16:44:55 2020 +0900 @@ -77,13 +77,13 @@ my $output = $opt_w ? "context.h" : "stdout"; + use Data::Dumper; my @cbc_files; map { push(@cbc_files,File::Spec->rel2abs($_)); } @ARGV; my $gears = Gears::Context->new(compile_sources => \@cbc_files, find_root => "$FindBin::Bin/../", output => $output); my $data_gears = $gears->extraction_dg_compile_sources(); - my $g = $gears->set_data_gear_header_path(); + my $g = $gears->set_data_gear_header_path(keys %{$data_gears->{impl}},keys %{$data_gears->{interfaces}}); - #use DDP {deparse =>1}; my $dg2path = $gears->update_dg_each_header_path($data_gears,$g); my $tree = $gears->createImplTree_from_header($dg2path); $gears->tree2create_context_h($tree);