pkg:setup (buildpath/"projects/libcxx").install resource("libcxx") (buildpath/"tools/clang").install resource("clang") mkdir "build" && cd build args = std_cmake_args args << "-DCMAKE_OSX_SYSROOT=/" unless MacOS::Xcode.installed? args << "-DLLVM_ENABLE_LIBCXX=ON" args << ".." cmake -G Ninja *args ninja clang-format bin.install "bin/clang-format"