Skip to content

Let CI's sanitizer job use clang's default version#13219

Merged
shindere merged 1 commit intoocaml:trunkfrom
shindere:sanitizers-default-clang
Jul 19, 2024
Merged

Let CI's sanitizer job use clang's default version#13219
shindere merged 1 commit intoocaml:trunkfrom
shindere:sanitizers-default-clang

Conversation

@shindere
Copy link
Copy Markdown
Contributor

@shindere shindere commented Jun 5, 2024

This is to avoid having to maintain a hard-coded version number

@xavierleroy may like this. Also discussed recenty with both @MisterDA and @OlivierNicole.

It may be interesting to backport this to other release branches, which
would make it possible to uninstall the older clang versions from the
server. @Octachron may have an opinion on this.

Copy link
Copy Markdown
Contributor

@MisterDA MisterDA left a comment

Choose a reason for hiding this comment

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

The end of the script is commented out but could be updated too. I suggest to name the variable llvm_version.

@shindere shindere force-pushed the sanitizers-default-clang branch from 5053922 to 81e91b0 Compare June 5, 2024 10:12
@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Jun 5, 2024 via email

This is to avoid having to maintain a hard-coded version
@shindere shindere force-pushed the sanitizers-default-clang branch from 81e91b0 to 5d16740 Compare June 5, 2024 12:52
@xavierleroy
Copy link
Copy Markdown
Contributor

Much neater, thanks!

Copy link
Copy Markdown
Contributor

@OlivierNicole OlivierNicole left a comment

Choose a reason for hiding this comment

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

Looks correct to me too. I don’t know why version 14 (and even 9) are hardcoded, but if there’s no good reason, I’m all for moving to a more recent and regularly updated version.

@shindere
Copy link
Copy Markdown
Contributor Author

shindere commented Jun 5, 2024 via email

@MisterDA
Copy link
Copy Markdown
Contributor

#13290 will also modify the script. I think this PR should be merged before. I don't see anything holding it back.

@edwintorok
Copy link
Copy Markdown
Contributor

Them being undefined just means don't use the tool at all rather than use the tool of the same LLVM version. Sadly.

Do you have llvm-symbolizer in $PATH? On Ubuntu 22.04 I do have one in /usr/bin/llvm-symbolizer and stacktraces seem to be working fine.

#13290 will also modify the script. I think this PR should be merged before. I don't see anything holding it back.

I can rebase my PRs once this one is merged.
I've also opened #13293 which modifies the CI script.

@shindere shindere merged commit f4b13c2 into ocaml:trunk Jul 19, 2024
@shindere shindere deleted the sanitizers-default-clang branch July 19, 2024 07:37
dra27 pushed a commit that referenced this pull request Mar 16, 2026
Let CI's sanitizer job use clang's default version

(cherry picked from commit f4b13c2)
dra27 pushed a commit that referenced this pull request Mar 16, 2026
Let CI's sanitizer job use clang's default version

(cherry picked from commit f4b13c2)
dra27 pushed a commit that referenced this pull request Mar 16, 2026
Let CI's sanitizer job use clang's default version

(cherry picked from commit f4b13c2)
dra27 pushed a commit that referenced this pull request Mar 16, 2026
Let CI's sanitizer job use clang's default version

(cherry picked from commit f4b13c2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants