-
Notifications
You must be signed in to change notification settings - Fork 85
Doesn't support JSON targets #145
Comments
This doesn't always work. There's no guarantee the file name matches the LLVM name or it's even a proper triple, e.g. If we want to "support" custom targets the documentation should state that this is best effort support and than nightly updates may break things. |
I agree it requires the user to name their JSON file correctly, but at least they have that option. Currently, |
304: Allow using the crate with custom target JSON specs r=adamgreig a=jonas-schievink This should fix #145 (cc @thejpster) Co-authored-by: Jonas Schievink <[email protected]>
304: Allow using the crate with custom target JSON specs r=adamgreig a=jonas-schievink This should fix rust-embedded/cortex-m-rt#145 (cc @thejpster) Co-authored-by: Jonas Schievink <[email protected]>
If you supply a target as a JSON file, the build.rs can't detect the target. This is because
target
is a full path - in my case starts this startsC:\
, which !=thumbv
.I think the fix is to take the
file_stem()
of the path and use that. This should work for both JSON targets and built-in targets (that don't contain.
). If the built-in target does use.
(e.g.thumbv8-m.base
) we'll need to be a bit cleverer.The text was updated successfully, but these errors were encountered: