Skip to content

Commit 002f3b7

Browse files
J-HeinemannJoshua Heinemannwenyongh
authored
Missing SGX SDK Include fixed (#275)
* Missing SGX SDK Include fixed * Update shared_platform.cmake Co-authored-by: Joshua Heinemann <[email protected]> Co-authored-by: wenyongh <[email protected]>
1 parent 5d86060 commit 002f3b7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/shared/platform/linux-sgx/shared_platform.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ add_definitions(-DBH_PLATFORM_LINUX_SGX)
88
include_directories(${PLATFORM_SHARED_DIR})
99
include_directories(${PLATFORM_SHARED_DIR}/../include)
1010

11+
if ("$ENV{SGX_SDK}" STREQUAL "")
12+
set (SGX_SDK_DIR "/opt/intel/sgxsdk")
13+
else()
14+
set (SGX_SDK_DIR $ENV{SGX_SDK})
15+
endif()
16+
17+
include_directories (${SGX_SDK_DIR}/include
18+
${SGX_SDK_DIR}/include/tlibc
19+
${SGX_SDK_DIR}/include/libcxx)
1120

1221
file (GLOB_RECURSE source_all ${PLATFORM_SHARED_DIR}/*.c)
1322

0 commit comments

Comments
 (0)