Skip to content

Commit b2b7eba

Browse files
sdplzha101
authored andcommitted
Check whether SGX_SDK is set explicitly
1 parent 5c2a779 commit b2b7eba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

QuoteGeneration/buildenv.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ SGX_ARCH ?= x64
6767
SGX_DEBUG ?= 0
6868

6969
ifndef _TD_MIGRATION
70-
ifneq ($(MAKECMDGOALS),clean)
70+
ifneq ($(origin SGX_SDK),file)
7171
include $(SGX_SDK)/buildenv.mk
72+
else
73+
$(info You may need to set environment variables if the SGX SDK is installed.)
74+
$(info Use a command like 'source /opt/intel/sgxsdk/environment')
7275
endif
7376
endif
7477

0 commit comments

Comments
 (0)