Skip to content

Commit

Permalink
Use -lvi-cfg variants of OE libs
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton committed Sep 8, 2023
1 parent 98206da commit cbcb2cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/open_enclave.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ if(REQUIRE_OPENENCLAVE)
)

option(LVI_MITIGATIONS "Enable LVI mitigations" ON)
if(LVI_MITIGATIONS)
string(APPEND OE_TARGET_LIBC -lvi-cfg)
list(TRANSFORM OE_TARGET_ENCLAVE_AND_STD APPEND -lvi-cfg)
list(TRANSFORM OE_TARGET_ENCLAVE_CORE_LIBS APPEND -lvi-cfg)
endif()

function(add_lvi_mitigations name)
if(LVI_MITIGATIONS)
Expand Down

0 comments on commit cbcb2cc

Please sign in to comment.