[llvm-dev] Safety of changing values of variables by editing CMakeCache.txt Vs supplying them through the command line

Sanjay Srivallabh Singapuram via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 8 10:54:16 PDT 2017


Thanks for your response Michael !

I would have to maintain a symlink which points to either directory then.
Is that recommended ?

On Tue, 8 Aug 2017 at 23:14 Michael Kruse <llvmdev at meinersbur.de> wrote:

> 2017-08-08 19:32 GMT+02:00 Sanjay Srivallabh Singapuram via llvm-dev
> <llvm-dev at lists.llvm.org>:
> > Hello,
> >
> > I'm working on a project involving LLVM and keep shifting between the
> Debug
> > and Release build by assigning different values to CMAKE_BUILD_TYPE in
> > <llvm_build>/CMakeCache.txt and then building it.
> >
> > I wanted to know if this was a safe alternative to re-configuring the
> build
> > after removing <llvm_build>/CMakeFiles/ and <llvm_build>/CMakeCache.txt.
>
> Have two build directories which each point to the the same source folder.
>
> $ (mkdir release && cd release && cmake path/to/source
> -DCMAKE_BUILD_TYPE=Release)
>
> $ (mkdir debug && cd debug && cmake path/to/source
> -DCMAKE_BUILD_TYPE=Debug)
>
> Michael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170808/43c1b579/attachment.html>


More information about the llvm-dev mailing list