aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorVili Väinölä <vilivainola@gmail.com>2021-03-07 05:39:39 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-03-08 22:11:04 +0200
commit96405c3923934cfa2a7e864c4098ac75576dc379 (patch)
treea423e80580d7cddaf5c92932c84d342439d7b7d0 /mesonbuild
parent6226ac26ef63335bfb817db02b3f295c78214a82 (diff)
downloadmeson-96405c3923934cfa2a7e864c4098ac75576dc379.zip
meson-96405c3923934cfa2a7e864c4098ac75576dc379.tar.gz
meson-96405c3923934cfa2a7e864c4098ac75576dc379.tar.bz2
Add /Od flag to msvc optimization 0 args
Without specifying optimization the used optimization depends on vs runtime-library. With mdd it is /Od but with md it is /O2.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/mixins/visualstudio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py
index 29b1499..3ba0610 100644
--- a/mesonbuild/compilers/mixins/visualstudio.py
+++ b/mesonbuild/compilers/mixins/visualstudio.py
@@ -61,7 +61,7 @@ vs64_instruction_set_args = {
} # T.Dicst[str, T.Optional[T.List[str]]]
msvc_optimization_args = {
- '0': [], # /Od is default in msvc, no need to specify it
+ '0': ['/Od'],
'g': [], # No specific flag to optimize debugging, /Zi or /ZI will create debug information
'1': ['/O1'],
'2': ['/O2'],