Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Tools is sending x64 intelliSenseMode for x86 compiler #960

Closed
Colengms opened this issue Dec 7, 2019 · 1 comment
Closed

CMake Tools is sending x64 intelliSenseMode for x86 compiler #960

Colengms opened this issue Dec 7, 2019 · 1 comment
Labels
Milestone

Comments

@Colengms
Copy link
Contributor

Colengms commented Dec 7, 2019

When using CMake Tools as a configuration provider for vscode-cpptools, I'm seeing that it returns x64 intelliSenseMode for x86 compiler. 'msvc-x86' is expected:

  "intelliSenseMode": "msvc-x64",
  "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe",

It looks like the only 2 values it returns are msvc-x64 and clang-x64. The following is from cpptools.ts, line ~270.

intelliSenseMode: is_msvc ? 'msvc-x64' : 'clang-x64',

The x86 intelliSenseModes are relatively recent additions in cpptools, so this probably predates them. Though, if the compiler is gcc, gcc intelliSenseMode's should be used.

@andreeis
Copy link
Contributor

andreeis commented Feb 4, 2020

Closing since this is fixed in CMake Tools Beta2. Please reactivate if you encounter any other symptoms of this issue.

@andreeis andreeis closed this as completed Feb 4, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants