Skip to content

Commit

Permalink
Restore use of -lvi-cfg variants of OE libs (#5635)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton authored Sep 8, 2023
1 parent 98206da commit a62f7bf
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 a62f7bf

Please sign in to comment.