Skip to content

Commit

Permalink
Comment out debug assembler flag
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed May 2, 2024
1 parent 9c4db6f commit 1afe840
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ if(NOT OPENSSL_NO_ASM)
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Qunused-arguments")
endif()

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()

# 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
# CMake versions.
if(APPLE AND CMAKE_VERSION VERSION_LESS 3.19)
Expand Down

0 comments on commit 1afe840

Please sign in to comment.