Skip to content

Conversation

itsManjeet
Copy link
Contributor

Added CMake configurations to support build on darwin clang toolchain Tested for following configurations

  • ARCH=aarch64 CRYPTO=openssl TOOLCHAIN=CLANG

@steven-bellock
Copy link
Contributor

Should this be called "darwin" or "macos"? Not sure what other build systems use.

@itsManjeet
Copy link
Contributor Author

Should this be called "darwin" or "macos"? Not sure what other build systems use.

Either will work, but both Clang and CMake prefer darwin, which is why I used darwin.

@jyao1
Copy link
Member

jyao1 commented Oct 14, 2025

Should this be called "darwin" or "macos"? Not sure what other build systems use.

Either will work, but both Clang and CMake prefer darwin, which is why I used darwin.

Agree to use darwin.

cmake -E env CFLAGS="${{ matrix.configurations }} -DLIBSPDM_DEBUG_LIBSPDM_ASSERT_CONFIG=3" cmake -DARCH=${{ matrix.arch }} -DTOOLCHAIN=${{ matrix.toolchain }} -DTARGET=${{ matrix.target }} -DCRYPTO=${{ matrix.crypto }} ..
cp -a ../unit_test/sample_key/* bin/
cp -a ../unit_test/fuzzing/* bin/ && rm -rf bin/test_spdm_common bin/test_spdm_crypt
make -j1 # process killed with nproc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See, for example, zipper177/SatDump@d9e3b15.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@itsManjeet this is still unresolved.

Added CMake configurations to support build on darwin clang toolchain
Tested for following configurations
- ARCH=aarch64 CRYPTO=openssl TOOLCHAIN=CLANG

Signed-off-by: itsManjeet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build system enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants