Skip to content

Commit

Permalink
Cleanup for CMAKE_ASM_FLAGS (#1430)
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth authored Feb 2, 2024
1 parent 13708de commit 997e2dd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ if(NOT OPENSSL_NO_ASM)
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Qunused-arguments")
endif()

# Clang's integerated assembler does not support debug symbols.
if (CMAKE_ASM_COMPILER_ID MATCHES "Clang" OR CMAKE_ASM_COMPILER MATCHES "clang")
message(STATUS "Disabling debug symbols for Clang internal assembler")
else()
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wa,-g")
if(CMAKE_BUILD_TYPE_LOWER STREQUAL "debug" OR CMAKE_BUILD_TYPE_LOWER STREQUAL "relwithdebinfo" )
if (CMAKE_ASM_COMPILER_ID MATCHES "Clang" OR CMAKE_ASM_COMPILER MATCHES "clang")
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -g")
else()
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wa,-g")
endif()
endif()

# Work around https://gitlab.kitware.com/cmake/cmake/-/issues/20771 in older
Expand Down

0 comments on commit 997e2dd

Please sign in to comment.