Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 630 Bytes

BUILD_MACOS.md

File metadata and controls

19 lines (17 loc) · 630 Bytes

How to build on macOS

How to build with Clang on macOS

  1. Install Homebrew
  2. Install required tools to compile:
brew install cmake llvm libomp
  1. Download and install latest vulkansdk-macos-*.dmg to ~/VulkanSDK
  2. Clone the repository and run the following commands:
mkdir debug
cd debug
export LDFLAGS="-L/usr/local/opt/llvm/lib"
export CPPFLAGS="-I/usr/local/opt/llvm/include"
cmake -DCMAKE_C_COMPILER="/usr/local/opt/llvm/bin/clang" -DCMAKE_CXX_COMPILER="/usr/local/opt/llvm/bin/clang++" -DCMAKE_BUILD_TYPE=Debug ..
cmake --build .