ABI select: GNU vs MASM


#1

Hi!

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?

Thanks


#2

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


#3

Thanks! Seems target_env isn’t on docs.