From 2914950c4407b90b7f253d0ceb01e34d4a06d977 Mon Sep 17 00:00:00 2001 From: Sam Clark <3758302+goatgoose@users.noreply.github.com> Date: Sat, 29 Jul 2023 21:34:24 -0400 Subject: [PATCH] traditional make --- docs/BUILD.md | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/docs/BUILD.md b/docs/BUILD.md index b8e678154f2..836421ab4e9 100644 --- a/docs/BUILD.md +++ b/docs/BUILD.md @@ -28,14 +28,11 @@ brew install cmake ninja go # MacOS does not have a supported libcrypto preinstalled, but OpenSSL can be installed with brew brew install openssl@3 -# get the libcrypto install directory -openssl_dir=$(dirname $(dirname $(brew list openssl@3|grep libcrypto.dylib))) - # build s2n-tls cmake . -Bbuild -GNinja \ - -DCMAKE_PREFIX_PATH=$openssl_dir -ninja -C build -ninja -C build test + -DCMAKE_PREFIX_PATH=$(dirname $(dirname $(brew list openssl@3|grep libcrypto.dylib))) +ninja -C build -j $(sysctl -n hw.ncpu) +CTEST_PARALLEL_LEVEL=$(sysctl -n hw.ncpu) ninja -C build test ``` @@ -46,14 +43,14 @@ ninja -C build test ``` -s2n-tls can be configured with the following cmake options. Each option can be configured by passing a `-D