diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index c6f87b60b..b60e0b84b 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -676,12 +676,15 @@ void LibertyParser::error(const std::string &str) const #else +YS_ATTRIBUTE(weak) void LibertyParser::error() const { fprintf(stderr, "Syntax error in liberty file on line %d.\n", line); exit(1); } + +YS_ATTRIBUTE(weak) void LibertyParser::error(const std::string &str) const { std::stringstream ss;