diff options
author | Marios Staikopoulos <marios@staik.net> | 2021-01-10 14:52:46 -0800 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-17 21:03:35 +0000 |
commit | a3d8dc546c1a83f9e99f729ed5966d0e95581ac2 (patch) | |
tree | 1dfcf0ccc0a9712827a3a78eb2d4a7c4b9b074b1 /docs/markdown/snippets | |
parent | 903c8716e373f829ef1d48712b26ad61d576436b (diff) | |
download | meson-a3d8dc546c1a83f9e99f729ed5966d0e95581ac2.zip meson-a3d8dc546c1a83f9e99f729ed5966d0e95581ac2.tar.gz meson-a3d8dc546c1a83f9e99f729ed5966d0e95581ac2.tar.bz2 |
Removal of /ZI on MSVC Debug
The /ZI flag adds in "Edit and Continue" debug information, which will
cause massive slowdown. It is not a flag that we should be adding by
default to debug builds.
/Zi will still be added.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/msvc_no_zi.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/markdown/snippets/msvc_no_zi.md b/docs/markdown/snippets/msvc_no_zi.md new file mode 100644 index 0000000..711598d --- /dev/null +++ b/docs/markdown/snippets/msvc_no_zi.md @@ -0,0 +1,14 @@ +## "Edit and continue" (/ZI) is no longer used by default for Visual Studio + +Meson was adding the `/ZI` compiler argument as an argument for Visual Studio +in debug mode. This enables the `edit-and-continue` debugging in +Visual Studio IDE's. + +Unfortunately, it is also extremely expensive and breaks certain use cases such +as link time code generation. Edit and continue can be enabled by manually by +adding `/ZI` to compiler arguments. + +The `/ZI` argument has now been replaced by the `/Zi` argument for debug builds. + +If this is an important issue for you and would like a builtin toggle option, +please file an issue in the Meson bug tracker.
\ No newline at end of file |