From 322b0885052a45dc2c11a022366432a4947b7c3a Mon Sep 17 00:00:00 2001 From: sideshowbarker Date: Tue, 9 Jul 2024 14:24:59 +0900 Subject: [PATCH] Documentation: Add how-to for building with homebrew clang on macOS --- Documentation/BuildInstructionsLadybird.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/BuildInstructionsLadybird.md b/Documentation/BuildInstructionsLadybird.md index 5b52ae64780..c600917c8e6 100644 --- a/Documentation/BuildInstructionsLadybird.md +++ b/Documentation/BuildInstructionsLadybird.md @@ -136,6 +136,13 @@ cmake --preset default -DENABLE_QT=ON To re-disable the Qt chrome, run the above command with `-DENABLE_QT=OFF`. +On macOS, to build with clang from homebrew: + +``` +brew install llvm +CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ ./Meta/ladybird.sh run +``` + ### Resource files Ladybird requires resource files from the ladybird/Base/res directory in order to properly load