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

[REQUEST]: Flang frontend driver #6400

Closed
partouf opened this issue Apr 25, 2024 · 2 comments
Closed

[REQUEST]: Flang frontend driver #6400

partouf opened this issue Apr 25, 2024 · 2 comments
Labels
request Request for something

Comments

@partouf
Copy link
Contributor

partouf commented Apr 25, 2024

Is your feature request related to a problem? Please describe

A user has requested to make use of the Flang frontend driver directly https://flang.llvm.org/docs/FlangDriver.html
This is done through passing -fc1 to flang-new (as a first argument)
This cannot be done currently with the flang compilerType that we have, because user arguments come last.

There are 2 options:

  1. Override add an exception for -fc1 to be put in front of all options when the user supplies it https://github.com/compiler-explorer/compiler-explorer/blob/main/lib/base-compiler.ts#L1128 (but will probably conflict with other arguments, so not sure if even possible)
  2. Override the FlangCompiler class itself to make a new compiler that supports -fc1 and all it can do (and can't do)

Describe the solution you'd like

I would prefer option 2

Describe alternatives you've considered

Additional context

Not applicable

@partouf
Copy link
Contributor Author

partouf commented May 14, 2024

was merged but is not live yet

@partouf
Copy link
Contributor Author

partouf commented May 14, 2024

this is now live

@partouf partouf closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Request for something
Projects
None yet
Development

No branches or pull requests

1 participant