Unverified Commit 19d1571e authored by Rahul Butani's avatar Rahul Butani
Browse files

llvmPackages_15.lldb: fix the manpages

parent b4ee532f
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -88,11 +88,10 @@ let
      python3 = pkgs.python3;  # don't use python-boot
    });

    # Needs package for spinhx-automodapi: https://github.com/astropy/sphinx-automodapi
    # lldb-manpages = lowPrio (tools.lldb.override {
    #   enableManpages = true;
    #   python3 = pkgs.python3;  # don't use python-boot
    # });
    lldb-manpages = lowPrio (tools.lldb.override {
      enableManpages = true;
      python3 = pkgs.python3;  # don't use python-boot
    });

    # pick clang appropriate for package set we are targeting
    clang =
+7 −0
Original line number Diff line number Diff line
@@ -116,6 +116,13 @@ stdenv.mkDerivation (rec {
    "-DLLVM_ENABLE_SPHINX=ON"
    "-DSPHINX_OUTPUT_MAN=ON"
    "-DSPHINX_OUTPUT_HTML=OFF"

    # docs reference `automodapi` but it's not added to the extensions list when
    # only building the manpages:
    # https://github.com/llvm/llvm-project/blob/af6ec9200b09039573d85e349496c4f5b17c3d7f/lldb/docs/conf.py#L54
    #
    # so, we just ignore the resulting errors
    "-DSPHINX_WARNINGS_AS_ERRORS=OFF"
  ] ++ lib.optionals doCheck [
    "-DLLDB_TEST_C_COMPILER=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}cc"
    "-DLLDB_TEST_CXX_COMPILER=${stdenv.cc}/bin/${stdenv.cc.targetPrefix}c++"