From 7f62b145dd9ca1a32f15d34eae5047fab80463a3 Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Mon, 7 Jul 2025 20:47:40 -0700 Subject: [PATCH] build: Build assembly in ih264d with cpp preprocessor (#1631) --- dependencies/ih264d/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dependencies/ih264d/CMakeLists.txt b/dependencies/ih264d/CMakeLists.txt index 64ac0931..a8ef3776 100644 --- a/dependencies/ih264d/CMakeLists.txt +++ b/dependencies/ih264d/CMakeLists.txt @@ -182,7 +182,10 @@ target_sources(ih264d PRIVATE "decoder/arm/ih264d_function_selector_av8.c" "decoder/arm/ih264d_function_selector.c" ) -target_compile_options(ih264d PRIVATE -DARMV8) +target_compile_options(ih264d PRIVATE -DARMV8 $<$:-Wno-unused-command-line-argument>) +if(NOT MSVC) + set(CMAKE_ASM_FLAGS "${CFLAGS} -x assembler-with-cpp") +endif() if(APPLE) target_sources(ih264d PRIVATE "common/armv8/macos_arm_symbol_aliases.s") endif()