Described below are the details for building successfully on macOS (x64) architectures:
A new buildAttestationLibDarwin.sh shell script is created which separately handles darwin platforms.
Also, since LLVM's Clang toolchain isn't the same on Apple devices, this condition was factored into Intel's DCAP Attestation Library.
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
Particularly for the postExtensionBuildDarwin.sh shell script, instead of using patchelf, on macOS, install_name_tool is used to replace rpath in the _quote_verification bundle file with the necessary absolute paths.
The setup.py file which builds the python library, is also updated to include building for darwin.
Description
Described below are the details for building successfully on macOS (x64) architectures:
A new
buildAttestationLibDarwin.sh
shell script is created which separately handlesdarwin
platforms.Also, since LLVM's Clang toolchain isn't the same on Apple devices, this condition was factored into Intel's DCAP Attestation Library.
Particularly for the
postExtensionBuildDarwin.sh
shell script, instead of usingpatchelf
, on macOS,install_name_tool
is used to replacerpath
in the_quote_verification
bundle file with the necessary absolute paths.The
setup.py
file which builds the python library, is also updated to include building fordarwin
.Related Issue
Type of change
How Has This Been Tested?
Tested on a macOS Big Sur VM with VMWare, and a sample application consuming the server, and it works perfectly!
Checklist: