[llvm-dev] Safety of changing values of variables by editing CMakeCache.txt Vs supplying them through the command line
Michael Kruse via llvm-dev
llvm-dev at lists.llvm.org
Tue Aug 8 10:43:46 PDT 2017
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
More information about the llvm-dev
mailing list