Skip to content

Commit 8d4be19

Browse files
authored
Merge pull request #7 from gilles-peskine-arm/all_sh-mbedcrypto
[mbedcrypto] all.sh: make it possible to run a subset of the components
2 parents 005401e + e878987 commit 8d4be19

File tree

4 files changed

+854
-646
lines changed

4 files changed

+854
-646
lines changed

library/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ if(CMAKE_COMPILER_IS_CLANG)
103103
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-declarations -Wmissing-prototypes -Wdocumentation -Wno-documentation-deprecated-sync -Wunreachable-code")
104104
endif(CMAKE_COMPILER_IS_CLANG)
105105

106+
if(UNSAFE_BUILD)
107+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error")
108+
set(CMAKE_C_FLAGS_ASAN "${CMAKE_C_FLAGS_ASAN} -Wno-error")
109+
set(CMAKE_C_FLAGS_ASANDBG "${CMAKE_C_FLAGS_ASANDBG} -Wno-error")
110+
endif(UNSAFE_BUILD)
111+
106112
if(WIN32)
107113
set(libs ${libs} ws2_32)
108114
endif(WIN32)

0 commit comments

Comments
 (0)