diff options
author | Andrew Zonenberg <azonenberg@drawersteak.com> | 2016-12-23 05:10:37 -0800 |
---|---|---|
committer | Andrew Zonenberg <azonenberg@drawersteak.com> | 2016-12-23 05:10:37 -0800 |
commit | 9f69a70d746e7907eed494941bc89a18159caa1b (patch) | |
tree | a0e70a25f3b4090912866264431662de67e1f226 /kernel/driver.cc | |
parent | ada98844b93e29fcbcfada02f89b2882d73182f1 (diff) | |
parent | 33a22f8768ee05325f87258fe09c21c648553747 (diff) | |
download | yosys-9f69a70d746e7907eed494941bc89a18159caa1b.tar.gz yosys-9f69a70d746e7907eed494941bc89a18159caa1b.tar.bz2 yosys-9f69a70d746e7907eed494941bc89a18159caa1b.zip |
Merge https://github.com/cliffordwolf/yosys
Diffstat (limited to 'kernel/driver.cc')
-rw-r--r-- | kernel/driver.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc index f8d00c38d..3652ff4f1 100644 --- a/kernel/driver.cc +++ b/kernel/driver.cc @@ -218,6 +218,9 @@ int main(int argc, char **argv) printf(" yosys_dump_<header_id>.il is used as filename if none is specified.\n"); printf(" Use 'ALL' as <header_id> to dump at every header.\n"); printf("\n"); + printf(" -W regex\n"); + printf(" print a warning for all log messages matching the regex \n"); + printf("\n"); printf(" -V\n"); printf(" print version information and exit\n"); printf("\n"); @@ -238,7 +241,7 @@ int main(int argc, char **argv) } int opt; - while ((opt = getopt(argc, argv, "MXAQTVSm:f:Hh:b:o:p:l:L:qv:tds:c:D:")) != -1) + while ((opt = getopt(argc, argv, "MXAQTVSm:f:Hh:b:o:p:l:L:qv:tds:c:W:D:")) != -1) { switch (opt) { @@ -320,6 +323,12 @@ int main(int argc, char **argv) scriptfile = optarg; scriptfile_tcl = true; break; + case 'W': + log_warn_regexes.push_back(std::regex(optarg, + std::regex_constants::nosubs | + std::regex_constants::optimize | + std::regex_constants::egrep)); + break; case 'D': { auto args = split_tokens(optarg, ":"); |