Sanjay Srivallabh Singapuram via llvm-dev
2017-Aug-08 17:32 UTC
[llvm-dev] Safety of changing values of variables by editing CMakeCache.txt Vs supplying them through the command line
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. Thanks, Sanjay -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170808/3016d033/attachment.html>
Michael Kruse via llvm-dev
2017-Aug-08 17:43 UTC
[llvm-dev] Safety of changing values of variables by editing CMakeCache.txt Vs supplying them through the command line
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
Sanjay Srivallabh Singapuram via llvm-dev
2017-Aug-08 17:54 UTC
[llvm-dev] Safety of changing values of variables by editing CMakeCache.txt Vs supplying them through the command line
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>
Possibly Parallel Threads
- Compiling LLVM with locally built clang | Errors
- Default Location of CUDA headers in Windows and macOS
- What does it mean by a "DICompileUnit missing from llvm.dgs.cu" ? | Where is the error ?
- System hangs during last stages of LLVM build | Tips on speeding it up ?
- CMake build of LLVM/clang with -DCMAKE_BUILD_TYPE=Release does not create release versions?