-
Notifications
You must be signed in to change notification settings - Fork 6
Support .json target files #4
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
Comments
It's basically the LLVM target configuration dumped in a file via rustc command. Here's a longer section with more details on intended use-case. |
That would be helpful if I knew anything at all about LLVM target configurations. ;) |
What would be useful for testing is to have a reasonably standard JSON file target. Is there something that can be relied upon to keep working, or all these all prone to breakage from rustc/LLVM changes? |
Basically, you don't need to know anything about the LLVM target configuration. This is just a json file required to build your code for a specific target (it sets up data alignment requirements, among other things), including panic handling, linker used etc. As long as you pass it down to the rustc all should be good. |
Is there a good default/standard target file to use as a test? |
You can dump a default one using the commands I linked above. If you don't modify it then it will be the same as used by rustc for compiling for that target by default (one is used regardless of if you specify it or not). |
We currently don't support .json target files. At least I assume that to be the case since I never tested them. I also know absolutely nothing about how they work, so some help would be appreciated here. :)
The text was updated successfully, but these errors were encountered: