-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verilog: remove dependency on util/config.h
This removes the dependency on the global object in util/config.h by passing the include paths as part of the optionst object.
- Loading branch information
Showing
6 changed files
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "verilog_preprocessor.h" | ||
|
||
#include <util/config.h> | ||
#include <util/unicode.h> | ||
|
||
#include "expr2verilog.h" | ||
|
@@ -136,7 +135,7 @@ std::filesystem::path verilog_preprocessort::find_include_file( | |
} | ||
|
||
// Then try include paths in given order. | ||
for(const auto &include_path : config.verilog.include_paths) | ||
for(const auto &include_path : include_paths) | ||
{ | ||
auto full_name = std::filesystem::path{include_path}.append(given_filename); | ||
if(std::filesystem::directory_entry(full_name).exists()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters