Skip to content

Instantly share code, notes, and snippets.

@apetenchea
Created September 22, 2022 11:18
Show Gist options
  • Save apetenchea/b4bb6e5e64c3cc00465b4a83e0e332ad to your computer and use it in GitHub Desktop.
Save apetenchea/b4bb6e5e64c3cc00465b4a83e0e332ad to your computer and use it in GitHub Desktop.
#!/bin/bash
# create build directory
mkdir -p build
# run cmake
(cd build && cmake \
-DCMAKE_CXX_COMPILER="clang++" \
-DCMAKE_C_COMPILER="clang" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUSE_ENTERPRISE=On \
-DUSE_JEMALLOC=On \
-DUSE_MAINTAINER_MODE=On \
-DUSE_GOOGLE_TESTS=On \
-DUSE_FAILURE_TESTS=On \
-DUSE_STRICT_OPENSSL_VERSION=Off \
-DUSE_FAIL_ON_WARNINGS=On \
-DUSE_IPO=Off \
-DUSE_SEPARATE_REPLICATION2_TESTS_BINARY=On \
-DOPENSSL_ROOT_DIR="/opt/homebrew/opt/openssl" \
-DCMAKE_OSX_DEPLOYMENT_TARGET="12" \
-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=ld \
..
)
# compile
(cd build && make -j6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment