Skip to content

Commit

Permalink
Generalize compiler regex
Browse files Browse the repository at this point in the history
  • Loading branch information
i-ky committed Apr 4, 2023
1 parent 6492826 commit dc0dd99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/basset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ int main(int argc, char *argv[]) {
// signal to the child that everything is set up
pipe << token{};

Regex compiler("g(cc|\\+\\+)");
Regex compiler(
R"REGEX(([^-]+-)*(c(c|\+\+)|(g(cc|\+\+)|clang(\+\+)?)(-[0-9]+(\.[0-9]+){0,2})?)$)REGEX");

CompilationDatabase cdb(output);

Expand Down

0 comments on commit dc0dd99

Please sign in to comment.