You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, we pick the target triples to pass clang by defaulting to the first segment of the target triple and then manually fixing them up with a large set of branches. Is there a way we could query the target spec from rustc to get the LLVM target names? For example, by running:
We can obtain a JSON dump of all of the target configurations. Each target configuration contains an "llvm-target" field which we should be passing to clang. That's not stable right now, but maybe there's some other way to work with that?
The text was updated successfully, but these errors were encountered:
We can obtain a JSON dump of all of the target configurations. Each target configuration contains an "llvm-target" field which we should be passing to clang.
Maybe we could add pre-generate them, in the same way we generate windows syscall bindings (in dev-tools/generate-windows-sys-bindings)?
E.g. add a new non-publish-able crate in the workspace that query the rustc and generate a .rs file containing the mapping.
Right now, we pick the target triples to pass clang by defaulting to the first segment of the target triple and then manually fixing them up with a large set of branches. Is there a way we could query the target spec from rustc to get the LLVM target names? For example, by running:
We can obtain a JSON dump of all of the target configurations. Each target configuration contains an
"llvm-target"
field which we should be passing to clang. That's not stable right now, but maybe there's some other way to work with that?The text was updated successfully, but these errors were encountered: