Created
September 22, 2022 11:18
-
-
Save apetenchea/b4bb6e5e64c3cc00465b4a83e0e332ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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