-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[Premerge] Add flang-rt #128678
Merged
Merged
[Premerge] Add flang-rt #128678
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
9ebeeae
[Premerge] Add flang-rt
Meinersbur afada27
Don't change deps
Meinersbur 8345c19
flang-rt has dependencies
Meinersbur da2a539
flang-rt is a runtime
Meinersbur 93a7713
Merge branch 'flang_runtime_premerge' into users/meinersbur/flang_run…
Meinersbur a8a9323
Fix syntax error
Meinersbur a7b728c
flang_runtime_amdgpu-offload
Meinersbur b0d0879
Pass Flang as Fortran compiler
Meinersbur 8c41ae6
Merge branch 'main' into users/meinersbur/flang_runtime_premerge
Meinersbur e8b028a
Minimal changes
Meinersbur 67809ce
Add change in flang/ to trigger pre-merge check
Meinersbur d2144a0
Undo unrelated change
Meinersbur 26bb93a
Set FLANG_ENABLE_FLANG_RT=OFF
Meinersbur 6e7d7fd
Pass LLVM_BINARY_DIR required for testing
Meinersbur bed0c3f
Adjust all runtime build configurations
Meinersbur 59ec1ee
Trigger build of Flang when flang-rt is changed
Meinersbur 637f662
Test change in flang-rt to trigger flang compilation
Meinersbur 881b6bf
Consider changes in flang-rt
Meinersbur 3d95f2e
Exclude flang-rt from LLVM_ENABLE_PROJECTS
Meinersbur b2354ff
Do not add flang-rt to projects-to-test in the first place
Meinersbur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Putting it here will still build it using the
LLVM_ENABLE_PROJECTS
mechanism. Is that intentional?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.
No it is not. I think I assumed that it worked like zorg's
depends_on_projects
.But now that I look closer to it, I am even more puzzled. If there is a file changed in a runtime, let's say
libcxx
, it will not be added tolinux_projects_to_test
, and hence nothing is added tolinux_runtimes_to_test
? Am I missing something? Why doesall_projects
list also the runtimes?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.
They're all built as projects currently. It's on my TODO list to migrate them, but I haven't gotten around to it yet.
As far as I understand
libcxx;libcxxabi;libunwind
are the three that go through the runtimes build.If everything works like this, I'm perfectly fine with merging and then changing it around when I switch how the runtimes build works in the premerge system. Otherwise, having it be implicit added when building flang is fine with me, and we can revisit when I switch stuff over to the proper runtimes build.
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.
I added flang-rt to compute-runtimes-to-test instead. Please also review the changes in add-dependencies, I think the entry on
flang-rt
is useless then.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.
Have you tested this locally? I don't think this will work as is. On Linux the runtimes explicitly built through the runtimes build are in
llvm-project/.ci/monolithic-linux.sh
Line 95 in 6eefadd
I would think the path to Flang would need to be passed in there? No idea how the plumbing works for
flang-rt
though. The runtimes are also built three separate times in different C++ configurations, which doesn't make sense for a library written in Fortran, although looking at the source, it seems like most of it is in C++?If this isn't a necessary change for keeping the flang build working, it might be worth just waiting until I've had a chance to rework how we test runtimes in premerge.
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.
You are correct, the path to Flang must be passed to the runtimes build. Thanks for noticing.
I have not tested it locally yet. There are some reasons for that
I will try to make it run locally anyway.