From a96c775a7301645b27486a5e663c75fca460f577 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 7 Jan 2018 16:36:13 +0100 Subject: Add support for "yosys -E" Signed-off-by: Clifford Wolf --- frontends/verilog/preproc.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'frontends/verilog') diff --git a/frontends/verilog/preproc.cc b/frontends/verilog/preproc.cc index 00bdcee43..c43ff4e3a 100644 --- a/frontends/verilog/preproc.cc +++ b/frontends/verilog/preproc.cc @@ -400,10 +400,12 @@ std::string frontend_verilog_preproc(std::istream &f, std::string filename, cons if (!ff.fail()) break; } } - if (ff.fail()) + if (ff.fail()) { output_code.push_back("`file_notfound " + fn); - else + } else { input_file(ff, fixed_fn); + yosys_input_files.insert(fixed_fn); + } continue; } -- cgit v1.2.3