From 71db0138abc0b75c93d72d417a552aa03cff0000 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Tue, 29 Sep 2026 02:47:26 +0200 Subject: [PATCH] Fixed the documentation targets for the Makefile file. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 5138766f5f..7f05a84d73 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,11 @@ environment ?= .env include $(environment) export $(shell sed 's/=.*//' $(environment)) +# Uses the DocC executable from Xcode's default toolchain, as some Swift toolchains (e.g. 6.4.0) ship an x86_64-only one. +DOCC_EXEC ?= $(shell xcrun --toolchain com.apple.dt.toolchain.XcodeDefault --find docc 2>/dev/null) + +export DOCC_EXEC + # LIBRARY lib-build: ## Builds the library