aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/driver.cc
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2020-03-14 11:18:27 +0200
committerGitHub <noreply@github.com>2020-03-14 11:18:27 +0200
commit989e37f4e6f2b46a3e846b4a95b32afdee7fc98f (patch)
tree5b7ada9868c5f1a4242a649837d0ceeb94353027 /kernel/driver.cc
parentc0a009139b080078af703bf07f83637ef3c48259 (diff)
parent395daf6cedfb62d3a9c6b74b65c80f209d8b6ec5 (diff)
downloadyosys-989e37f4e6f2b46a3e846b4a95b32afdee7fc98f.tar.gz
yosys-989e37f4e6f2b46a3e846b4a95b32afdee7fc98f.tar.bz2
yosys-989e37f4e6f2b46a3e846b4a95b32afdee7fc98f.zip
Merge pull request #1766 from YosysHQ/mmicko/regex_gcc48
Regex support for GCC 4.8
Diffstat (limited to 'kernel/driver.cc')
-rw-r--r--kernel/driver.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc
index 398c89e03..5f0959776 100644
--- a/kernel/driver.cc
+++ b/kernel/driver.cc
@@ -413,22 +413,13 @@ int main(int argc, char **argv)
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));
+ log_warn_regexes.push_back(YS_REGEX_COMPILE(optarg));
break;
case 'w':
- log_nowarn_regexes.push_back(std::regex(optarg,
- std::regex_constants::nosubs |
- std::regex_constants::optimize |
- std::regex_constants::egrep));
+ log_nowarn_regexes.push_back(YS_REGEX_COMPILE(optarg));
break;
case 'e':
- log_werror_regexes.push_back(std::regex(optarg,
- std::regex_constants::nosubs |
- std::regex_constants::optimize |
- std::regex_constants::egrep));
+ log_werror_regexes.push_back(YS_REGEX_COMPILE(optarg));
break;
case 'D':
vlog_defines.push_back(optarg);