Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clang version detection, update freebsd ci #1874

Closed
wants to merge 1 commit into from

Conversation

grembo
Copy link
Contributor

@grembo grembo commented Sep 4, 2023

Also updated checkout action, since v3 started to fail today.

@grembo grembo mentioned this pull request Sep 4, 2023
@@ -38,9 +38,9 @@ use crate::errors::*;
/// A struct on which to implement `CCompilerImpl`.
#[derive(Clone, Debug)]
pub struct Clang {
/// true iff this is clang++.
/// true if this is clang++.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?
iff means If and only if

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just seems odd, as "if" is totally sufficient in this case (otherwise we would write iff true {, wouldn’t we?). And yes, I wasn’t aware ;)

@codecov-commenter
Copy link

codecov-commenter commented Sep 4, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (1ab4cff) 29.80% compared to head (97dc66a) 29.80%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1874   +/-   ##
=======================================
  Coverage   29.80%   29.80%           
=======================================
  Files          49       49           
  Lines       17516    17516           
  Branches     8423     8425    +2     
=======================================
  Hits         5220     5220           
- Misses       7212     7213    +1     
+ Partials     5084     5083    -1     
Files Changed Coverage Δ
src/compiler/clang.rs 53.54% <0.00%> (ø)
tests/system.rs 31.00% <0.00%> (ø)

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sylvestre
Copy link
Collaborator

could you please create a PR for freebsd and one for clang detection.
afaik, they are unrelated changes

(i already merged a different pr about the action update)

@grembo
Copy link
Contributor Author

grembo commented Sep 4, 2023

could you please create a PR for freebsd and one for clang detection. afaik, they are unrelated changes

(i already merged a different pr about the action update)

Hm, they were kind of related (technically it could also be three separate ones of course - fix bsd unit tests, fix clang detecting, update FreeBSD), but they would need to be applied in order for tests to succeed.

I see what I can do (later).

@grembo
Copy link
Contributor Author

grembo commented Sep 4, 2023

could you please create a PR for freebsd and one for clang detection. afaik, they are unrelated changes
(i already merged a different pr about the action update)

Hm, they were kind of related (technically it could also be three separate ones of course - fix bsd unit tests, fix clang detecting, update FreeBSD), but they would need to be applied in order for tests to succeed.

I see what I can do (later).

To me more precise, updating FreeBSD to 13.2 brought in clang >=14 which in turn exposed the bug in the clang unit test and once that was fixed, it exposed a bug in clang version parsing on Ubuntu (the bug in the clang unit test masked the bug in clang version parsing when there was no additional information, like a url, after the version number). Anyway :)

@grembo
Copy link
Contributor Author

grembo commented Sep 4, 2023

Closing this in favor of #1877, #1878, and #1879.

@grembo grembo closed this Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants