diff options
author | Roger Sanders <roger.sanders@maptek.com.au> | 2023-12-28 11:06:11 +1100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-01-01 20:53:18 +0200 |
commit | e110faed27616ea2a18eac160c335c3f039ac479 (patch) | |
tree | 7d51119d7f9bf285d02cf1bbc0b4cfc5b34fcdf2 /mesonbuild/backend | |
parent | 457161c0e8f67f74e4aafbc5080b66db9fdb35cb (diff) | |
download | meson-e110faed27616ea2a18eac160c335c3f039ac479.zip meson-e110faed27616ea2a18eac160c335c3f039ac479.tar.gz meson-e110faed27616ea2a18eac160c335c3f039ac479.tar.bz2 |
Fix intellisense errors in genvslite projects
Standard include paths need to be added to resolve STL and platform
headers. Additionally, compiler args need to be separated by spaces, not
semicolons, in order to be recognised.
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r-- | mesonbuild/backend/vs2010backend.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index bcae160..80ecc05 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -1118,7 +1118,7 @@ class Vs2010Backend(backends.Backend): # and include paths, e.g. - # '..\\some\\dir\\include;../../some/other/dir;' # and finally any remaining compiler options, e.g. - - # '/MDd;/W2;/std:c++17;/Od/Zi' + # '/MDd /W2 /std:c++17 /Od/Zi' @staticmethod def _extract_nmake_fields(captured_build_args: list[str]) -> T.Tuple[str, str, str]: include_dir_options = [ @@ -1131,7 +1131,7 @@ class Vs2010Backend(backends.Backend): ] defs = '' - paths = '' + paths = '$(VC_IncludePath);$(WindowsSDK_IncludePath);' additional_opts = '' for arg in captured_build_args: if arg.startswith(('-D', '/D')): @@ -1141,7 +1141,7 @@ class Vs2010Backend(backends.Backend): if opt_match: paths += arg[len(opt_match):] + ';' elif arg.startswith(('-', '/')): - additional_opts += arg + ';' + additional_opts += arg + ' ' return (defs, paths, additional_opts) @staticmethod |