-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[Flang][Parser] Add missing dependencies to CMakeLists.txt #77483
Conversation
Two additional component libraries: FrontendOpenACC and FrontendOpenMP.
@llvm/pr-subscribers-flang-parser @llvm/pr-subscribers-flang-fir-hlfir Author: Krzysztof Parzyszek (kparzysz) ChangesTwo additional component libraries: FrontendOpenACC and FrontendOpenMP. Full diff: https://github.com/llvm/llvm-project/pull/77483.diff 1 Files Affected:
diff --git a/flang/lib/Lower/CMakeLists.txt b/flang/lib/Lower/CMakeLists.txt
index b13d415e02f1d9..8183d4280c2597 100644
--- a/flang/lib/Lower/CMakeLists.txt
+++ b/flang/lib/Lower/CMakeLists.txt
@@ -56,5 +56,7 @@ add_flang_library(FortranLower
MLIRSCFToControlFlow
LINK_COMPONENTS
+ FrontendOpenACC
+ FrontendOpenMP
Support
)
|
This is needed for getting directive names for both OpenMP and OpenACC when using |
I see that FortranParser has a link_component entry for
|
|
Sounds good. Will update the PR later today. |
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.
LGTM.
Bad news, this didn't work. I put
|
Why would you put DumpTree in lowering? For local debugging? |
Basically, yes. I can add these libraries when I need them, so this is not a big deal. I should probably revert this commit though, since it doesn't accomplish anything. |
Although... If I don't need to link any extra libraries do get |
Well DumpTree is not really meant to be called from lowering so I would not add the library unless there is an upstream usage of it. |
|
…77483)" This reverts commit cc53ec8. This commit hasn't accomplished anything. The original issue was that `DumpTree`, when called from lowering, caused linker errors due to some directive-naming functions being absent. Adding FrontendOpenMP to the parser library didn't fix that problem, and according to the notes in PR #77483, calling `DumpTree` from lowering isn't really supported.
When I looked at the "needed" libraries for |
There are some usage of |
I build shared libraries. Looking again at the error messages---it seems like it's this symbol that's missing: |
Add FrontendOpenMP as an additional component library dependency.
…lvm#77483)" This reverts commit cc53ec8. This commit hasn't accomplished anything. The original issue was that `DumpTree`, when called from lowering, caused linker errors due to some directive-naming functions being absent. Adding FrontendOpenMP to the parser library didn't fix that problem, and according to the notes in PR llvm#77483, calling `DumpTree` from lowering isn't really supported.
Two additional component libraries: FrontendOpenACC and FrontendOpenMP.