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

[flang] Do not create .f18.mod files for each compiled module #85249

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

mjklemm
Copy link
Contributor

@mjklemm mjklemm commented Mar 14, 2024

The default CMake scripts had a copy operation to copy a compiled .mod file to also be available with suffix .f18.mod. This seems no longer needed. Also updated ModFiles.md to point to -module-suffix.

@mjklemm mjklemm self-assigned this Mar 14, 2024
@llvmbot llvmbot added the flang Flang issues not falling into any other category label Mar 14, 2024
Copy link
Collaborator

@kkwli kkwli left a comment

Choose a reason for hiding this comment

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

LG

Thanks.

flang/tools/f18/CMakeLists.txt Outdated Show resolved Hide resolved
flang/docs/ModFiles.md Outdated Show resolved Hide resolved
@mjklemm
Copy link
Contributor Author

mjklemm commented Mar 22, 2024

@kiranchandramohan @banach-space Ping :-)

Copy link
Contributor

@kiranchandramohan kiranchandramohan left a comment

Choose a reason for hiding this comment

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

Would the flang-to-external-fc script (https://flang.llvm.org/docs/FlangDriver.html#the-flang-to-external-fc-script) work without this? The script might not be needed if nobody is using it. If so it might be good to remove that in a separate patch.

flang/docs/ModFiles.md Outdated Show resolved Hide resolved
Co-authored-by: Kiran Chandramohan <kiranchandramohan@gmail.com>
Copy link

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link

✅ With the latest revision this PR passed the Python code formatter.

Copy link
Contributor

@banach-space banach-space left a comment

Choose a reason for hiding this comment

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

LG, thanks!

Would the flang-to-external-fc script (https://flang.llvm.org/docs/FlangDriver.html#the-flang-to-external-fc-script) work without this? The script might not be needed if nobody is using it. If so it might be good to remove that in a separate patch.

+1 to removing it, but it would be good to ask on Discourse first

@mjklemm mjklemm merged commit a1cd5e6 into llvm:main Apr 11, 2024
4 of 5 checks passed
@mjklemm mjklemm deleted the do_not_generate_f18_mod_suffix branch April 11, 2024 08:19
mjklemm added a commit that referenced this pull request Apr 19, 2024
It seems like the `flang-to-external-fc` tool is no longer needed,
because Flang is now a full compiler in its own right. After PR #85249
has landed, this tool will not be able to pick up the `.f18.mod` files.
aniplcc pushed a commit to aniplcc/llvm-project that referenced this pull request Apr 21, 2024
It seems like the `flang-to-external-fc` tool is no longer needed,
because Flang is now a full compiler in its own right. After PR llvm#85249
has landed, this tool will not be able to pick up the `.f18.mod` files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants