Skip to content

Commit

Permalink
NASM use default debug format
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Aug 7, 2024
1 parent 5fd0f08 commit 7a60bac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ if(NOT OPENSSL_NO_ASM)
endif()
find_program(NASM_EXECUTABLE nasm)
set(CMAKE_ASM_NASM_COMPILER ${NASM_EXECUTABLE})
set(CMAKE_ASM_NASM_FLAGS "${CMAKE_ASM_NASM_FLAGS} -gcv8")
if("${CMAKE_BUILD_TYPE_LOWER}" STREQUAL "relwithdebinfo" OR
NOT CMAKE_BUILD_TYPE_LOWER MATCHES "rel")
# Provide debug in the default format
set(CMAKE_ASM_NASM_FLAGS "${CMAKE_ASM_NASM_FLAGS} -g")
endif()

# On Windows, we use the NASM output.
set(ASM_EXT asm)
Expand Down

0 comments on commit 7a60bac

Please sign in to comment.