-
Notifications
You must be signed in to change notification settings - Fork 623
fix(llvm): correct clang's default GCC triple for Azure Linux stage2 #17043
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
base: tomls/base/main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,9 @@ | |
| # are imported into Azure Linux. MLIR is gated on %{with mlir} in the | ||
| # upstream spec and pulls in python3-nanobind-devel which doesn't exist yet. | ||
| build.without = ["mlir"] | ||
|
|
||
| [[components.llvm.overlays]] | ||
| description = "Use the Azure Linux GCC toolchain triple in clang's default config so clang can find gcc runtime files in stage2 builds" | ||
| type = "spec-search-replace" | ||
| regex = '%global cfg_file_content --gcc-triple=%{_target_cpu}-redhat-linux' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there an opportunity to use the standard RPM macro
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is unfortunately not a match thanks to the "gnu"
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good to know. How about at least using %{_vendor}? |
||
| replacement = '%global cfg_file_content --gcc-triple=%{_target_cpu}-azurelinux-linux' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| [components.llvm20] | ||
|
|
||
| [[components.llvm20.overlays]] | ||
| description = "Use the Azure Linux GCC toolchain triple in clang20's default config so clang20 can find gcc runtime files in stage2 builds" | ||
| type = "spec-search-replace" | ||
| regex = '%global cfg_file_content --gcc-triple=%{_target_cpu}-redhat-linux' | ||
| replacement = '%global cfg_file_content --gcc-triple=%{_target_cpu}-azurelinux-linux' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also build llvm15, 18, and 20; are they all impacted too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
20 for sure. Looks like 15 and 18 don't have the config file refrence so I am not sure. I will update the pr at least for llvm20.