Skip to content

Commit

Permalink
GNU and x86
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Sep 3, 2024
1 parent 1cec299 commit c77a84b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ if(UNIX AND NOT APPLE)
if(CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS "5.0")
set(MY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX ON CACHE BOOL "Disable AVX512 on old GCC that not supports it")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2")

if(CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86|X86|i386|i686")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2")
endif()
message(STATUS "XXXXXXXXX CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}")
message(STATUS "XXXXXXXXX CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}")


add_subdirectory(aws-lc)
Expand Down

0 comments on commit c77a84b

Please sign in to comment.