C flags were being passed to assembler (masm) (#6544)
Avoids sending C flags to MASM resulting in issues while building with MSVC/MASM.
diff --git a/iree/hal/local/elf/CMakeLists.txt b/iree/hal/local/elf/CMakeLists.txt
index dfb8f93..debba51 100644
--- a/iree/hal/local/elf/CMakeLists.txt
+++ b/iree/hal/local/elf/CMakeLists.txt
@@ -89,5 +89,8 @@
if(${MSVC})
if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
target_sources(iree_hal_local_elf_arch PRIVATE "arch/x86_64_msvc.asm")
+ set_source_files_properties(
+ arch/x86_64_msvc.asm
+ PROPERTIES LANGUAGE ASM_MASM)
endif()
endif()