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
Detect and memoize whether cc (the linker) is gcc or clang.
The detected categorization is memoized in the Session object.
The link.rs backend then uses this information when choosing options
to add to the `cc` command line arguments (currently it just affects a
single option that will cause a hard error in clang in the future).
This is meant to be, in part, a more robust version of PR #17192.
As drive-bys:
* fix an english grammar mistake in a comment.
* replace the use of `String` with `&str` for the program names
corresponding `cc` and `ar`, avoiding unnecessary string copies
but more importantly making the code overall look nicer. :)
Fix#17214.
(Addressed review nits from nrc and acrichto.)
0 commit comments