| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
In FreeBSD-10, the banner of clang version is "FreeBSD clang version". Fix regex to detect it.
| return get_version_helper( | ||
| cc, r"(^clang version|based on LLVM) ([3-9]\.[0-9]+)") | ||
| cc, r"(^clang version|^FreeBSD clang version|based on LLVM) " + | ||
| "([3-9]\.[0-9]+)") |
There was a problem hiding this comment.
You could simply remove the anchor, I think?
Sorry, something went wrong.
There was a problem hiding this comment.
I thought it could be fixed but have no full confirmation if it has no side effects. This is very conservative fix not to break existing checks.
Sorry, something went wrong.
There was a problem hiding this comment.
I suppose a little conservatism won't hurt. Can you line up the strings?
Sorry, something went wrong.
There was a problem hiding this comment.
I'm a little coward ;-).
get_xcode_version in 4 lines below had also 4 space indents. I fixed both. Thanks.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with a style nit.
Sorry, something went wrong.
| return get_version_helper( | ||
| cc, r"(^clang version|based on LLVM) ([3-9]\.[0-9]+)") | ||
| cc, r"(^clang version|^FreeBSD clang version|based on LLVM) " + | ||
| "([3-9]\.[0-9]+)") |
There was a problem hiding this comment.
I suppose a little conservatism won't hurt. Can you line up the strings?
Sorry, something went wrong.
|
CI was done in https://ci.nodejs.org/job/node-test-pull-request/6682/ and all is green. |
Sorry, something went wrong.
| def get_llvm_version(cc): | ||
| return get_version_helper( | ||
| cc, r"(^clang version|based on LLVM) ([3-9]\.[0-9]+)") | ||
| cc, r"(^clang version|^FreeBSD clang version|based on LLVM) " + |
There was a problem hiding this comment.
An alternative would be a non-capturing group, e.g.
cc, r"(^(?:FreeBSD )?clang version|based on LLVM) " +
Sorry, something went wrong.
There was a problem hiding this comment.
I did not think of a non-capturing parentheses. It does not break existing check and looks better. Thanks.
@bnoordhuis I fixed in ed1d266. PTAL.
Sorry, something went wrong.
There was a problem hiding this comment.
Confirmed it works fine in both FreeBSD-10 of clang-3.4 with OS prefix in its banner, https://ci.nodejs.org/job/node-test-commit-freebsd/7474/nodes=freebsd10-64/consoleFull and FreeBSD-11 of clang-3.6 without no OS prefix ,https://ci.nodejs.org/job/node-test-commit-freebsd/7474/nodes=freebsd11-x64/consoleFull .
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
In FreeBSD-10, the banner of clang version is "FreeBSD clang version". Fix regex to detect it. PR-URL: #11668 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
In FreeBSD-10, the banner of clang version is "FreeBSD clang version". Fix regex to detect it. PR-URL: #11668 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
In FreeBSD-10, the banner of clang version is "FreeBSD clang version". Fix regex to detect it. PR-URL: #11668 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
In FreeBSD-10, the banner of clang version is "FreeBSD clang version". Fix regex to detect it. PR-URL: #11668 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
In FreeBSD-10, the banner of clang version is "FreeBSD clang version". Fix regex to detect it. PR-URL: nodejs/node#11668 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
| Back | FazBrowse Home | New Git URL |
In FreeBSD-10, the banner of clang version start with "FreeBSD clang version" but the current configure checks /^clang version/ so that llvm_version is 0 and openssl is built with asm_obsolete.
This can be seen in the CI output of https://ci.nodejs.org/job/node-test-commit-freebsd/7417/nodes=freebsd10-64/consoleFull that 'llvm_version': 0, in the current configure output.
With this fix, the clang version banner can be checked properly in FreeBSD-10. The result of https://ci.nodejs.org/job/node-test-commit-freebsd/7419/nodes=freebsd10-64/consoleFull shows that 'llvm_version': '3.4',.
Checklist
Affected core subsystem(s)
build
CC: @nodejs/platform-freebsd or @nodejs/build