Skip to content

Commit

Permalink
Update cmake/compilers/Clang.cmake
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Kumbrasev <[email protected]>
  • Loading branch information
JhaShweta1 and pavelkumbrasev authored Aug 9, 2023
1 parent 2c5bbdd commit 5c3951e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/compilers/Clang.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(AMD64|amd64|i.86|x86)")
endif()

# Clang flags to prevent compiler from optimizing out security checks
set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -Wformat -Wformat-security -Werror=format-security -fPIC $<$<NOT:EMSCRIPTEN>:-fstack-protector-strong>)
set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -Wformat -Wformat-security
-Werror=format-security -fPIC $<$<NOT:EMSCRIPTEN>:-fstack-protector-strong>)
# -z switch is not supported on MacOS
if (NOT APPLE)
set(TBB_LIB_LINK_FLAGS ${TBB_LIB_LINK_FLAGS} -Wl,-z,relro,-z,now)
Expand Down

0 comments on commit 5c3951e

Please sign in to comment.