Skip to content

Commit

Permalink
Add armv7l/armv8l support to loader/CMakeLists.txt
Browse files Browse the repository at this point in the history
This fixes this error message appearing when building on linux/armv7l or linux/armv8l:

CMake Warning at loader/CMakeLists.txt:368 (message):                                                                         
  Could not find working armv8l GAS assembler                                                                                 
                                                                                                                              Support for unknown physical device and device functions is disabled due to missing the required assembly support code.  To support unknown functions, assembly must be added for the platform.
  • Loading branch information
satmandu authored and charles-lunarg committed Oct 30, 2024
1 parent 7a83084 commit 9276d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ elseif(UNIX OR MINGW OR (WIN32 AND USE_GAS)) # i.e.: Linux & Apple & MinGW & Win
if(ASSEMBLER_WORKS)
set(OPT_LOADER_SRCS ${OPT_LOADER_SRCS} unknown_ext_chain_gas_aarch.S)
endif()
elseif (${SYSTEM_PROCESSOR} MATCHES "aarch32|armhf")
elseif (${SYSTEM_PROCESSOR} MATCHES "aarch32|armhf|armv7l|armv8l")
try_compile(ASSEMBLER_WORKS ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/asm_test_aarch32.S OUTPUT_VARIABLE TRY_COMPILE_OUTPUT)
if(ASSEMBLER_WORKS)
set(OPT_LOADER_SRCS ${OPT_LOADER_SRCS} unknown_ext_chain_gas_aarch.S)
Expand Down

0 comments on commit 9276d73

Please sign in to comment.