On Sat, 10 May 2025, Takashi Yano via Cygwin-apps wrote:

> On Fri, 9 May 2025 10:46:18 -0700 (PDT)
> Jeremy Drake wrote:
> > > @@ -128,6 +128,7 @@ CYGCMAKE_ARGS="
> > >   -DCMAKE_BUILD_TYPE=Release
> > >
> > >   -DLLVM_INCLUDE_TOOLS=ON -DLLVM_BUILD_TOOLS=ON
> > > + -DLLVM_INSTALL_GTEST=ON
> > >   -DLLVM_INCLUDE_EXAMPLES=ON -DLLVM_BUILD_EXAMPLES=OFF
> > >   -DLLVM_INCLUDE_UTILS=ON -DLLVM_BUILD_UTILS=ON -DLLVM_INSTALL_UTILS=ON
> > >   -DLLVM_INCLUDE_DOCS=ON -DLLVM_BUILD_DOCS=ON
> > > @@ -177,7 +178,6 @@ else
> > >           CYGCMAKE_ARGS+="
> > >                   -DLLVM_INCLUDE_TESTS=ON
> > >                   -DLLVM_BUILD_TESTS=OFF
> > > -                 -DLLVM_INSTALL_GTEST=ON
> > >           "
> > >   fi
> > >  fi
> >
> > I believe -DLLVM_INCLUDE_TESTS=ON -DLLVM_BUILD_TESTS=OFF are the
> > defaults...
>
> Sorry, I don't understand why it is necessary even for
> bootstrapping. Could you please let me know the reason
> why you think the test should be enabled for bootstrapping?

I got an error because usr/lib/libllvm*.a wasn't present if it didn't
build and install libllvm_gtest.a, and it didn't if
LLVM_INCLUDE_TESTS=OFF.  I guess the libllvm_devel_CONTENTS could exclude
usr/lib/libllvm*.a if BOOTSTRAP=yes, I just chose to include instead.

Reply via email to