Debian Codegraph @

crt/s2n/.github/s2n_osx.sh

raw symbols SCIP
1 #!/bin/bash
2 #!/bin/bash
3 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License").
6 # You may not use this file except in compliance with the License.
7 # A copy of the License is located at
8 #
9 # http://aws.amazon.com/apache2.0
10 #
11 # or in the "license" file accompanying this file. This file is distributed
12 # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13 # express or implied. See the License for the specific language governing
14 # permissions and limitations under the License.
15 #
16 set -eu
17
18 export CTEST_OUTPUT_ON_FAILURE=1
19 BREWINSTLLPATH=$(brew --prefix openssl)
20 OPENSSL_INSTALL_DIR="${BREWINSTLLPATH:-"/opt/homebrew/Cellar/openssl"}"
21
22 echo "Using OpenSSL at $OPENSSL_INSTALL_DIR"
23 # Build with debug symbols
24 cmake . -Bbuild -GNinja \
25 -DCMAKE_BUILD_TYPE=Debug \
26 -DCMAKE_PREFIX_PATH=${OPENSSL_INSTALL_DIR} ..
27
28 cmake --build ./build -j $(nproc)
29 time CTEST_PARALLEL_LEVEL=$(nproc) ninja -C build test
30
31 # Build shared library
32 cmake . -Bbuild -GNinja \
33 -DCMAKE_BUILD_TYPE=Debug \
34 -DCMAKE_PREFIX_PATH=${OPENSSL_INSTALL_DIR} .. \
35 -DBUILD_SHARED_LIBS=ON
36
37 cmake --build ./build -j $(nproc)
38 time CTEST_PARALLEL_LEVEL=$(nproc) ninja -C build test