From 3afe18228a339987f7298fc46c01c313e77b19ae Mon Sep 17 00:00:00 2001 From: Ian Harvey Date: Sun, 27 Sep 2020 11:00:15 +0930 Subject: compilers: Use /Od for no-optimisation flag for Intel compilers on windows Intel compilers on Windows (and the Microsoft C++ compiler) use /Od to disable optimisation, not /O0. --- mesonbuild/compilers/mixins/intel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/mixins/intel.py b/mesonbuild/compilers/mixins/intel.py index b83e5c4..5bb55ff 100644 --- a/mesonbuild/compilers/mixins/intel.py +++ b/mesonbuild/compilers/mixins/intel.py @@ -145,8 +145,8 @@ class IntelVisualStudioLikeCompiler(VisualStudioLikeCompiler): } # type: T.Dict[str, T.List[str]] OPTIM_ARGS = { - '0': ['/O0'], - 'g': ['/O0'], + '0': ['/Od'], + 'g': ['/Od'], '1': ['/O1'], '2': ['/O2'], '3': ['/O3'], -- cgit v1.1