openbsd-ports/multimedia/aom/patches/patch-build_cmake_aom_configure_cmake
2022-03-11 19:39:15 +00:00

24 lines
851 B
Plaintext

ARM uses compiler intrinsics, so don't require GNU as.
Index: build/cmake/aom_configure.cmake
--- build/cmake/aom_configure.cmake.orig
+++ build/cmake/aom_configure.cmake
@@ -160,17 +160,6 @@ elseif(AOM_TARGET_CPU MATCHES "arm")
set(AS_EXECUTABLE as)
endif()
endif()
- find_program(as_executable_found ${AS_EXECUTABLE})
- if(NOT as_executable_found)
- message(
- FATAL_ERROR
- "Unable to find assembler and optimizations are enabled."
- "Searched for ${AS_EXECUTABLE}. Install it, add it to your path, or "
- "set the assembler directly by adding -DAS_EXECUTABLE=<assembler path> "
- "to your CMake command line."
- "To build without optimizations, add -DAOM_TARGET_CPU=generic to your "
- "cmake command line.")
- endif()
string(STRIP "${AOM_AS_FLAGS}" AOM_AS_FLAGS)
endif()