Fix #126394: ffmpeg on win64 is built without SIMD optimizations

Since ee1b2f53cc the ffmpeg libraries for Windows x64 are built effectively
without CPU specific SIMD optimizations. `--arch=x64` is not an architecture
that ffmpeg configure understands, so it falls back to "nothing is known,
turn any architecture specific bits off" code path.

Pull Request: https://projects.blender.org/blender/blender/pulls/126396
This commit is contained in:
Aras Pranckevicius
2024-08-22 10:36:18 +02:00
committed by Aras Pranckevicius
parent 9b903d4c6f
commit 246a0ec46a
4 changed files with 33 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ elseif(APPLE)
foreach(_lib ${_test_libs})
# We need -force_load for every test library and target_link_libraries will
# deduplicate it. So explicitly set as linker option for every test lib.
target_link_libraries(blender_test PRIVATE ${_lib} "-Wl,-force_load,$<TARGET_PROPERTY:${_lib},IMPORTED_LOCATION>")
target_link_libraries(blender_test PRIVATE "-Wl,-force_load" ${_lib})
endforeach()
endif()