Skip to content

Commit

Permalink
Switch no-tests -> no-apps
Browse files Browse the repository at this point in the history
`no-apps` implies `no-tests`
[ref.](https://github.com/openssl/openssl/blob/master/INSTALL.md#no-apps)

Add `no-docs` to cut down on CI time

Add `no-module` to disable dynamic loading
[ref.](https://github.com/openssl/openssl/blob/master/INSTALL.md#no-module)
  • Loading branch information
nil4 committed Apr 25, 2024
1 parent af785d4 commit cc8f024
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ build_sim_libs()
local ARCH=$1
if [[ ! -d "${BUILD_DIR}/build/iphonesimulator-${ARCH}" ]]; then
pushd "${BUILD_DIR}"
./Configure --openssldir="${BUILD_DIR}/build/ssl" no-asm no-shared no-tests no-dso no-hw no-engine iossimulator-xcrun CFLAGS="-arch $ARCH -mios-simulator-version-min=${IOS_VERSION_MIN}"
./Configure --openssldir="${BUILD_DIR}/build/ssl" no-asm no-shared no-apps no-docs no-module no-dso no-hw no-engine iossimulator-xcrun CFLAGS="-arch $ARCH -mios-simulator-version-min=${IOS_VERSION_MIN}"
make clean
make -j$THREAD_COUNT
mkdir "${BUILD_DIR}/build/iphonesimulator-${ARCH}"
Expand All @@ -68,7 +68,7 @@ NATIVE_BUILD_FLAGS="-mmacosx-version-min=${MACOS_VERSION_MIN}"

if [[ ! -d "${BUILD_DIR}/build/lib" ]]; then
pushd "${BUILD_DIR}"
./Configure --prefix="${BUILD_DIR}/build" --openssldir="${BUILD_DIR}/build/ssl" no-shared no-tests no-module enable-md2 darwin64-$HOST_ARC-cc CFLAGS="${NATIVE_BUILD_FLAGS}"
./Configure --prefix="${BUILD_DIR}/build" --openssldir="${BUILD_DIR}/build/ssl" no-shared no-apps no-docs no-module enable-md2 darwin64-$HOST_ARC-cc CFLAGS="${NATIVE_BUILD_FLAGS}"
make clean
make -j$THREAD_COUNT
make -j$THREAD_COUNT install_sw # skip man pages, see https://github.com/openssl/openssl/issues/8170#issuecomment-461122307
Expand All @@ -78,7 +78,7 @@ fi

if [[ ! -d "${BUILD_DIR}/build/macosx" ]]; then
pushd "${BUILD_DIR}"
./Configure --openssldir="${BUILD_DIR}/build/ssl" no-shared no-tests no-module enable-md2 darwin64-$FOREIGN_ARC-cc CFLAGS="-arch ${FOREIGN_ARC} ${NATIVE_BUILD_FLAGS}"
./Configure --openssldir="${BUILD_DIR}/build/ssl" no-shared no-apps no-docs no-module enable-md2 darwin64-$FOREIGN_ARC-cc CFLAGS="-arch ${FOREIGN_ARC} ${NATIVE_BUILD_FLAGS}"
make clean
make -j$THREAD_COUNT
mkdir "${BUILD_DIR}/build/macosx"
Expand Down Expand Up @@ -108,7 +108,7 @@ fi

if [[ ! -d "${BUILD_DIR}/build/iphoneos" ]]; then
pushd "${BUILD_DIR}"
./Configure --openssldir="${BUILD_DIR}/build/ssl" no-asm no-shared no-tests no-dso no-hw no-engine ios64-xcrun -mios-version-min=${IOS_VERSION_MIN}
./Configure --openssldir="${BUILD_DIR}/build/ssl" no-asm no-shared no-apps no-docs no-module no-dso no-hw no-engine ios64-xcrun -mios-version-min=${IOS_VERSION_MIN}
make clean
make -j$THREAD_COUNT
mkdir "${BUILD_DIR}/build/iphoneos"
Expand Down

0 comments on commit cc8f024

Please sign in to comment.