File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1577,6 +1577,7 @@ endif()
15771577# Set processor-specific build macros
15781578if ("${CMAKE_SYSTEM_PROCESSOR} " MATCHES "x86_64|AMD64" )
15791579 set (WOLFSSL_X86_64_BUILD ON )
1580+ add_option ("WOLFSSL_X86_64_BUILD_ASM" "Build ASM files" "yes" "yes;no" )
15801581 list (APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_X86_64_BUILD" )
15811582elseif ("${CMAKE_SYSTEM_PROCESSOR} " MATCHES "aarch64|arm64" )
15821583 list (APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_AARCH64_BUILD" )
Original file line number Diff line number Diff line change @@ -510,9 +510,10 @@ function(generate_lib_src_list LIB_SOURCES)
510510 endif ()
511511
512512 if (BUILD_SP_X86_64)
513- list (APPEND LIB_SOURCES
514- wolfcrypt/src/sp_x86_64.c
515- wolfcrypt/src/sp_x86_64_asm.S)
513+ list (APPEND LIB_SOURCES wolfcrypt/src/sp_x86_64.c)
514+ if (WOLFSSL_X86_64_BUILD_ASM)
515+ list (APPEND LIB_SOURCES wolfcrypt/src/sp_x86_64_asm.S)
516+ endif ()
516517 endif ()
517518
518519 if (NOT BUILD_FIPS_V2 AND BUILD_SP_ARM32)
You can’t perform that action at this time.
0 commit comments