This patch allows libc++ to be built against the debug MSVC runtimes instead of just the release ones.
Details
- Reviewers
compnerd majnemer rnk smeenai - Commits
- rG7e3ee09ad24c: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode
rCXX292006: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode
rL292006: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode
Diff Detail
Event Timeline
Awesome. LGTM except that force-removing the _DEBUG define and then linking against the debug libraries might cause some wonkiness.
CMakeLists.txt | ||
---|---|---|
394 | We should be able to remove this now, right? |
Ack. I'll update the patch to still force remove _DEBUG but then later re-add it under the correct circumstances.
CMakeLists.txt | ||
---|---|---|
394 | I would still rather strip it and re-add it. Just incase it gets added by LLVM or another parent project. |
CMakeLists.txt | ||
---|---|---|
394 | Not completely sure I understand. Isn't this gonna be coming from cmake itself? |
- Address inline comments.
- Stop MSVC's default assertion handler from opening a new dialog window on failure.
CMakeLists.txt | ||
---|---|---|
394 | Yes, that was the original reason. Although it's possible an evil user could also add it. I would rather handle it manually instead of depending on implicit default flags. |
We should be able to remove this now, right?