Skip to content

Commit

Permalink
ci: improve location of ASM compiler argument
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Sep 23, 2024
1 parent c77675e commit b51a50a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(CMAKE_C_FLAGS_DEBUG "-Og -g -funwind-tables -DDEBUG -pipe -fno-pie -no-pie")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
set(CMAKE_ASM_COMPILER "${CMAKE_C_COMPILER}")
set(CMAKE_ASM_COMPILER_ARG1 "${CMAKE_C_COMPILER_ARG1}")
set(CMAKE_ASM_COMPILER_ARG1 "-mfpu=neon-fp-armv8")

# Use libgpiod to control GPIO LEDs?
option(USE_GPIOD "Use GPIOD" OFF)
Expand Down Expand Up @@ -333,7 +333,6 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "
src/jit/compemu_support.cpp
)
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "arm")
set(CMAKE_ASM_COMPILER_ARG1 "-mfpu=neon-fp-armv8")
target_compile_definitions(${PROJECT_NAME} PRIVATE CPU_arm ARMV6_ASSEMBLY ARMV6T2 USE_ARMNEON ARM_HAS_DIV)
target_sources(${PROJECT_NAME} PRIVATE
src/osdep/neon_helper.s
Expand Down

0 comments on commit b51a50a

Please sign in to comment.