-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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] Support --dependent-lib=
#63741
Labels
Comments
@EugeneZelenko, could you please mark this as flang-related? |
@llvm/issue-subscribers-flang-driver |
This was referenced Sep 29, 2023
I'm hoping to fix this with #70833 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Splitting this off of #60730 to make it more actionable.
Aside from the issues
__udivti3
(probably related to 128bit support, see #63712), there's an issue of using flang on windows to compile against the MSVC runtime, which comes in different flavours (mainly shared vs static, but also debug vs release). In particular, it seems that flang defaults to using the static library, which is incompatible with some other bits of our infra.The windows switches between shared/static use the flags
/MD
vs/MT
. To this end, he clang driver hasProcessVSRuntimeLibrary
plus an option to pass--dependent-lib=...
to the frontend driver.Based on what's encoded in
ProcessVSRuntimeLibrary
(and matching information I found elsewhere), the equivalent of/MD
would then beHowever,
flang-new -fc1
doesn't have a similar option to--dependent-lib
AFAICT.Trying to somehow monkey-patch things through the current interface, I see that it still wants to use the wrong (static) VS Runtime lib.
IIUC, it would be required to provide an equivalent to clang's
-Xclang --dependent-lib=
also for flang. Since flang uses the clang driver underneath, it's hopefully not too complicated to pipe this through?CC @klausler @banach-space
The text was updated successfully, but these errors were encountered: