Skip to content

Commit

Permalink
multimedia/aom: unbreak build on aarch64 after f0f115a
Browse files Browse the repository at this point in the history
CMake Error at build/cmake/aom_configure.cmake:212 (enable_language):
  The CMAKE_ASM_COMPILER:

    as

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full
path
  to the compiler, or to the compiler name if it is in the PATH.

Reported by:	eduardo
  • Loading branch information
jbeich committed Aug 18, 2023
1 parent 2508813 commit 0361482
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions multimedia/aom/files/patch-build_cmake_aom__configure.cmake
@@ -1,4 +1,5 @@
- FreeBSD and NetBSD powerpc* targets don't abbreviate to ppc*
- ARM uses compiler intrinsics, so don't require GNU as

--- build/cmake/aom_configure.cmake.orig 2023-08-14 21:22:47 UTC
+++ build/cmake/aom_configure.cmake
Expand All @@ -11,3 +12,37 @@
set(AOM_TARGET_CPU "ppc")
else()
message(WARNING "The architecture ${CMAKE_SYSTEM_PROCESSOR} is not "
@@ -183,33 +183,6 @@ if(AOM_TARGET_CPU STREQUAL "x86" OR AOM_TARGET_CPU STR
"To build without optimizations, add -DAOM_TARGET_CPU=generic to "
"your cmake command line.")
endif()
- string(STRIP "${AOM_AS_FLAGS}" AOM_AS_FLAGS)
-elseif(AOM_TARGET_CPU MATCHES "arm")
- if(AOM_TARGET_SYSTEM STREQUAL "Darwin")
- set(CMAKE_ASM_COMPILER as)
- set(AOM_AS_FLAGS -arch ${AOM_TARGET_CPU} -isysroot ${CMAKE_OSX_SYSROOT})
- elseif(AOM_TARGET_SYSTEM STREQUAL "Windows")
- if(NOT CMAKE_ASM_COMPILER)
- set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER} -c -mimplicit-it=always)
- endif()
- else()
- if(NOT CMAKE_ASM_COMPILER)
- set(CMAKE_ASM_COMPILER as)
- endif()
- endif()
- include(CheckLanguage)
- check_language(ASM)
- if(NOT CMAKE_ASM_COMPILER)
- message(
- FATAL_ERROR
- "Unable to find assembler and optimizations are enabled."
- "Searched for ${CMAKE_ASM_COMPILER}. Install it, add it to your path,"
- "or set the assembler directly by adding "
- "-DCMAKE_ASM_COMPILER=<assembler path> to your CMake command line."
- "To build without optimizations, add -DAOM_TARGET_CPU=generic to your "
- "cmake command line.")
- endif()
- enable_language(ASM)
string(STRIP "${AOM_AS_FLAGS}" AOM_AS_FLAGS)
endif()

0 comments on commit 0361482

Please sign in to comment.