Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 603 Bytes

apple-clang-compilation-guide.md

File metadata and controls

45 lines (31 loc) · 603 Bytes

🔨 Building project with Apple Clang

1. Install Apple Clang

brew install llvm@18

and add compiler to path:

export PATH="/opt/homebrew/opt/llvm@18/bin:$PATH"

2. Prepare build directory

git clone https://github.com/cieslarmichal/faker-cxx.git
cd faker-cxx
git submodule update --init --recursive

3. Setup CMake

cmake -B ./build -DCMAKE_CXX_COMPILER=clang++ -DBUILD_TESTING=ON

4. Build

cmake --build ./build

5. Run tests

./build/tests/faker-cxx-UT

or using CTest:

ctest --test-dir ./build