-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
clang-cl support? #204
Comments
If I wanted to help with this, what would I have to do? |
Hi there: grab the source, get it running (should be as per the README) and start hacking! To start with edit the
...and then see how it goes! If you need to start overriding behaviour for clang-cl specifically, you can set the And the send a PR :) (NB the .local. files don't go into source control, so you'll need to give me an example) I can generalise anything that doesn't fit spefically into the CE AWS setup! And of course: email or message me (email is as per Help menu; messaging is best on the cpplang slack) if I can help unblock you! |
I played with this a bit. (Took a while 'cause compiler-explorer needed a newer node than available on my system.) This makes the compiler show up and makes it kind of functional:
However, clang-cl is a native linux binary (on linux; on Windows it's a native Windows binary of course) and doesn't have to run under wine. CL.js always passes
With this, I can pass CL-style options to clang-cl and I even get disassembly if I click the buttons just right. One issue is that clang-cl produces regular clang-style assembly and it also doesn't support It probably makes sense to add something like
to the .properties file. (Even better: If we use So it's fairly easy to get something that kind-of works. I'm not sure if you'd prefer if there was a lib/compilers/clang-cl.js that's kind-of-but-not-quite like lib/compilers/CL.js (similar flags, but no need for wine, and has clang-style disassembly output instead of MSVC-style) or if you prefer tweaking CL.js to work for both. |
Great progress: thanks so much! |
Using #1967 to track this. |
Since the beta now has MSVC (yay!), maybe it could offer clang-cl too? clang-cl is part of the normal clang distribution, it runs clang in a driver mode that understands cl.exe-like options and it enables a few language extensions so that the MSVC headers can be parsed.
The text was updated successfully, but these errors were encountered: