Skip to content

Update to use C99 instead of C11 because of lack of SGX support#7959

Merged
douzzer merged 1 commit intowolfSSL:masterfrom
billphipps:sgx_c99_fix
Sep 10, 2024
Merged

Update to use C99 instead of C11 because of lack of SGX support#7959
douzzer merged 1 commit intowolfSSL:masterfrom
billphipps:sgx_c99_fix

Conversation

@billphipps
Copy link
Copy Markdown
Contributor

Description

After adding C11 memory fence support, the SGX nightly test failed with a missing stdatomic.h file. Our IDE/LINUX-SGX makefile erroneously forced C11 standard compliance, but SGX is only compatible with C99 and C++11. This change corrects the C standard to be C99 to match the libc that is embedded within the SGX include libraries.

Fixes job nightly-SGX_Linux-v2.

Note: I'm apply the same correction to wolfssl-examples SGX_LINUX.

Testing

Tested using boz-sgx, which is Ubuntu 18 with SGX SDK and matched build commands with script.

Checklist

  • [ X ] added tests -CORRECTED tests
  • [ N/A ] updated/added doxygen
  • [ N/A ] updated appropriate READMEs
  • [ N/A ] Updated manual and documentation

@billphipps
Copy link
Copy Markdown
Contributor Author

retest this please

@douzzer douzzer merged commit 213ac1a into wolfSSL:master Sep 10, 2024
@billphipps billphipps deleted the sgx_c99_fix branch September 16, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants