Skip to content

Commit 493f2bc

Browse files
committed
Add more workaround atop existing WolfSSL 5.5.4 workaround to compile ASAN on buildbot
The -D flag was not passed to asm compiler, despite SET_PROPERTY(COMPILE_OPTIONS) The exact reason for that remains unknown. It was not seen with gcc, as nor was be reproduced on newer CMake.
1 parent 785386c commit 493f2bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extra/wolfssl/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ IF(MSVC)
1212
SET(WOLFSSL_X86_64_BUILD 1)
1313
SET(HAVE_INTEL_RDSEED 1)
1414
SET(HAVE_INTEL_RDRAND 1)
15+
ELSEIF(CMAKE_ASM_COMPILER_ID MATCHES "Clang" AND CMAKE_VERSION VERSION_LESS 3.16)
16+
17+
# WolfSSL 5.5.4 bug workaround below does not work, due to some CMake bug
1518
ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64")
1619
SET(WOLFSSL_X86_64_BUILD 1)
1720
IF(CMAKE_C_COMPILER_ID MATCHES GNU AND CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9)

0 commit comments

Comments
 (0)