We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fd7681 commit 425c2a1Copy full SHA for 425c2a1
lib/descriptor/toolchain.rs
@@ -22,7 +22,15 @@ impl Toolchain {
22
*/
23
#[must_use]
24
pub const fn current_system() -> Option<Self> {
25
- None // TODO: Implement detection of the host toolchain
+ if cfg!(target_env = "msvc") {
26
+ Some(Self::Msvc)
27
+ } else if cfg!(target_env = "gnu") {
28
+ Some(Self::Gnu)
29
+ } else if cfg!(target_env = "musl") {
30
+ Some(Self::Musl)
31
+ } else {
32
+ None
33
+ }
34
}
35
36
/**
0 commit comments