Skip to content

Conversation

@jakos-sec
Copy link

Currently we are not able to create targets that have specific sanitizers enabled by default, since having five components gives:

cc-rs: too many components in target x86_64-unknown-linux-gnu-asan

This allows currently parsing such targets and simply strips the final part before turning it into a TargetInfo.

I'm opening this since I was suggested to use x86_64-unknown-linux-gnu-asan as the appropriate name for the target I'm creating (context: rust-lang/rust#149644 (comment)).

However I'd love to get some input on how we can solve this in the best way.

Right now I'm basically just throwing away the 5th component. Should we also parse this into the TargetInfo, do we want this sanitizer specific or give this a more generic name?

I'm opening this to hopefully get some input on what the most desirable way to solve this is. Thank you!

Currently we are not able to create targets that have specific
sanitizers enabled by default, since having five components gives:

```
cc-rs: too many components in target x86_64-unknown-linux-gnu-asan
```

This allows currently parsing such targets and simply strips the final
part before turning it into a `TargetInfo`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant