aboutsummaryrefslogtreecommitdiffstats
path: root/backends/protobuf/protobuf.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-06-21 11:17:19 -0700
committerEddie Hung <eddie@fpgeh.com>2019-06-21 11:17:19 -0700
commit63eb5cace980cd34e59065e577c04abaad239ddf (patch)
treebe065a052bda42a4654e4a1483f9fcde0beacef9 /backends/protobuf/protobuf.cc
parent776d7cea6ad42a58f47cdcb7a71a801e1ea1055f (diff)
parentc4ea6fff65d6b2e69a31649af7e10b129c6ae0f5 (diff)
downloadyosys-63eb5cace980cd34e59065e577c04abaad239ddf.tar.gz
yosys-63eb5cace980cd34e59065e577c04abaad239ddf.tar.bz2
yosys-63eb5cace980cd34e59065e577c04abaad239ddf.zip
Merge branch 'master' into eddie/muxpack
Diffstat (limited to 'backends/protobuf/protobuf.cc')
-rw-r--r--backends/protobuf/protobuf.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/protobuf/protobuf.cc b/backends/protobuf/protobuf.cc
index 549fc73ae..fff110bb0 100644
--- a/backends/protobuf/protobuf.cc
+++ b/backends/protobuf/protobuf.cc
@@ -336,6 +336,7 @@ struct ProtobufPass : public Pass {
std::stringstream buf;
if (!filename.empty()) {
+ rewrite_filename(filename);
std::ofstream *ff = new std::ofstream;
ff->open(filename.c_str(), std::ofstream::trunc);
if (ff->fail()) {