intel / linux-sgx

Intel SGX for Linux*
https://www.intel.com/content/www/us/en/developer/tools/software-guard-extensions/linux-overview.html
Other
1.32k stars 539 forks source link

Is it possible to build sdk with clang? #668

Open davidgith opened 3 years ago

davidgith commented 3 years ago

Hello, I was interested, if sdk can also be built with clang, but if I try this, I get some errors of incompatible CFLAGS "-mindirect-branch-register, -mfunction-return=thunk-extern, -mlfence-after-load=yes, -mlfence-before-indirect-branch=memory, -mlfence-before-ret=shl". If I remove these FLAGS, I get an error "implicit conversion changes signedness: 'int' to 'unsigned long'" So my question is, is it possible to execute "make sdk" with clang? Is it the right way, to remove the FLAGS and work on resulting errors? Thanks!

lzha101 commented 3 years ago

Building SGX SDK with clang is not supported.