Skip to content

Commit

Permalink
Disable ASM on Windows Intel
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Oct 18, 2024
1 parent dff68e4 commit c77508d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@ set(CMAKE_MACOSX_BUNDLE OFF)

project(bare_tls C CXX)

if(NOT TARGET ssl)
if(WIN32)
add_definitions(-DWIN32_LEAN_AND_MEAN)
endif()
bare_target(target)

if(target MATCHES "win32")
add_definitions(-DWIN32_LEAN_AND_MEAN)
endif()

if(target MATCHES "win32-x64")
set(OPENSSL_NO_ASM ON)
else()
enable_language(ASM)
endif()

if(NOT TARGET ssl)
add_subdirectory(vendor/boringssl EXCLUDE_FROM_ALL)
endif()

Expand Down

0 comments on commit c77508d

Please sign in to comment.