ABI select: GNU vs MASM



I’m trying to utilize pieces of ASM code, built as static libs. The problem is with Windows, where there are two pieces of ASM, one being built via GNU ASM and the other with MASM.

The question is, how can I distinguish current Rust target being MS or GNU to select one of prebuilt binaries?



#[cfg(target_env = "msvc")]
#[cfg(target_env = "gnu")]


Thanks! Seems target_env isn’t on docs.