From dff0869126ffe0d748c913de5775a73561d0d89e Mon Sep 17 00:00:00 2001 From: Cheng Shao <terrorjack@type.dance> Date: Fri, 21 Feb 2025 21:38:00 +0000 Subject: [PATCH] hadrian: enable building docs for cross targets Hadrian used to omit the docs target as a part of binary-dist-dir for cross targets. This commit enables docs to be built as a part of cross bindists and it works just fine in CI. (cherry picked from commit a794e7338e6657ddd0595015bbf024aa160c3de0) --- hadrian/src/Rules/BinaryDist.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadrian/src/Rules/BinaryDist.hs b/hadrian/src/Rules/BinaryDist.hs index aded3a4cb19..187ae211344 100644 --- a/hadrian/src/Rules/BinaryDist.hs +++ b/hadrian/src/Rules/BinaryDist.hs @@ -159,7 +159,7 @@ bindistRules = do let lib_exe_targets = (lib_targets ++ (map (\(_, p) -> p) (bin_targets ++ iserv_targets))) - let doc_target = if cross then [] else ["docs"] + let doc_target = ["docs"] let other_targets = map (bindistFilesDir -/-) (["configure", "Makefile"] ++ bindistInstallFiles) let all_targets = lib_exe_targets ++ doc_target ++ other_targets -- GitLab