You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by volcano <no...@github.com.INVALID> on 2021/06/19 01:30:13 UTC

Re: [apache/incubator-teaclave-sgx-sdk] Intuition behind cargo config flags and cargo attributes. (#345)

`target_env = "sgx"`
It does not mean that you are currently in the SGX environment.
It is defined in the target specification file of the custom SGX target and is used by xargo to build the sysroot of the SGX target.
[https://github.com/apache/incubator-teaclave-sgx-sdk/blob/master/xargo/x86_64-unknown-linux-sgx.json#L6](url)
[https://github.com/japaric/xargo#compiling-the-sysroot-for-a-custom-target](url)

`#[cfg(not(target_env = "sgx"))]`
Use `cfg` to check if your enclave is being compiled with the sysroot of the SGX target.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/345#issuecomment-864337130