Skip to content

Commit

Permalink
clean it up and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Sep 3, 2024
1 parent dcbb557 commit 00dedb1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ if(UNIX AND NOT APPLE)
endif()

string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" CMAKE_SYSTEM_PROCESSOR_LOWER)

if(CMAKE_SYSTEM_PROCESSOR_LOWER MATCHES "x86_64|amd64" AND CMAKE_SIZEOF_VOID_P EQUAL 4 OR CMAKE_SYSTEM_PROCESSOR_LOWER MATCHES "x86|i386|i686")
if(CMAKE_SYSTEM_PROCESSOR_LOWER MATCHES "x86_64|amd64|x86|i386|i686" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
# Add -msse2 for x86 because of https://github.com/aws/aws-lc/commit/6fe8dcbe96e580ea85233fdb98a142e42951b70b
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2")
endif()

message(STATUS "XXXXXXXXX CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}")
add_subdirectory(aws-lc)
endif()

Expand Down

0 comments on commit 00dedb1

Please sign in to comment.