Skip to content

Commit

Permalink
Try #3816:
Browse files Browse the repository at this point in the history
  • Loading branch information
oeciteam committed Jun 27, 2022
2 parents d68c5f3 + 704c93c commit 186904f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion enclave/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ if (OE_SGX)
# user. There are valid reasons for an end user to use built-ins.
$<BUILD_INTERFACE:-fno-builtin-malloc
-fno-builtin-calloc
-fno-builtin>)
-fno-builtin>
# Treat warnings as errors by default. Application based on OE SDK
# will inhere this flag, which is consistent to the behavior of the
# clangw script.
-Werror)
elseif (OE_TRUSTZONE)
enclave_compile_options(oecore PUBLIC -fvisibility=hidden ${OE_TZ_TA_C_FLAGS})
endif ()
Expand Down
5 changes: 4 additions & 1 deletion pkgconfig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ set(ENCLAVE_CFLAGS_LIST
-fstack-protector-strong
-fno-omit-frame-pointer
-ffunction-sections
-fdata-sections)
-fdata-sections
# Treat warnings as errors by default, which is consistent to the behavior
# of the clangw script.
-Werror)

set(ENCLAVE_CFLAGS_CLANG_LIST ${ENCLAVE_CFLAGS_LIST}
${SPECTRE_MITIGATION_FLAGS})
Expand Down

0 comments on commit 186904f

Please sign in to comment.