Compile source files to ELF files under Windows

Hey everyone,

I currently try to compile a few .cpp files under Windows with Clang-Cl, not targeting the COFF format, but instead I want to create ELF files. I do want to use the Microsoft headers and ABI, I just don’t want to get COFF files in the end. So I tried the following target:

–target=x86_64-pc-windows-elf

1>fatal error: error in backend: invalid llvm.linker.options

Hey everyone,

I currently try to compile a few .cpp files under Windows with Clang-Cl, not targeting the COFF format, but instead I want to create ELF files. I do want to use the Microsoft headers and ABI, I just don’t want to get COFF files in the end. So I tried the following target:

–target=x86_64-pc-windows-elf

1>fatal error: error in backend: invalid llvm.linker.options