[llvm] [Github] Enable warnings as errors on flang sphinx build (PR #72723)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 15 11:26:42 PST 2024


https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/72723

>From 0bc9964a7f257f624740ec2bd2e6afe92d4624c1 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <agrossman154 at yahoo.com>
Date: Fri, 17 Nov 2023 16:02:09 -0800
Subject: [PATCH 1/2] [Github] Enable warnings as errors on flang sphinx build

Now that the number of warnings in the flang sphinx build has come down
significantly, we can turn on warnings as errors in the sphinx build,
which is the default configuration in CMake.
---
 .github/workflows/docs.yml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 5936cdc46a902d..5ebf3a44b9c6b3 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -162,8 +162,6 @@ jobs:
           TZ=UTC ninja -C polly-build docs-polly-html docs-polly-man
       - name: Build Flang docs
         if: steps.docs-changed-subprojects.outputs.flang_any_changed == 'true'
-        # TODO(boomanaiden154): Remove the SPHINX_WARNINGS_AS_ERRORS from the
-        # CMake invocation once the warnings in the flang docs build are fixed.
         run: |
-          cmake -B flang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;mlir;flang" -DLLVM_ENABLE_SPHINX=ON -DSPHINX_WARNINGS_AS_ERRORS=OFF ./llvm
+          cmake -B flang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;mlir;flang" -DLLVM_ENABLE_SPHINX=ON ./llvm
           TZ=UTC ninja -C flang-build docs-flang-html docs-flang-man

>From a3d9da5a93bb5efd4131dc9be9b57a0bcbf3088e Mon Sep 17 00:00:00 2001
From: Aiden Grossman <agrossman154 at yahoo.com>
Date: Thu, 15 Feb 2024 11:26:20 -0800
Subject: [PATCH 2/2] Don't build flang-docs-man

---
 .github/workflows/docs.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 5ad3c674e9587a..d62485e2ebb66e 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -166,4 +166,4 @@ jobs:
         if: steps.docs-changed-subprojects.outputs.flang_any_changed == 'true'
         run: |
           cmake -B flang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;mlir;flang" -DLLVM_ENABLE_SPHINX=ON ./llvm
-          TZ=UTC ninja -C flang-build docs-flang-html docs-flang-man
+          TZ=UTC ninja -C flang-build docs-flang-html



More information about the llvm-commits mailing list