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

IWYU runs always with -march=x86-64 #53

Open
2342343243234 opened this issue Nov 3, 2017 · 1 comment
Open

IWYU runs always with -march=x86-64 #53

2342343243234 opened this issue Nov 3, 2017 · 1 comment

Comments

@2342343243234
Copy link

2342343243234 commented Nov 3, 2017

Unfortunately size_t is still 4 bytes on my machine.

Adding -m64 to the commandline as mentioned here solves the problem for me.

There seems to be no way of adding anything to the iwyu commandline. Maybe it's possible to have an optional file in the iwyu directory which can be read by IncludeToolBox and passed verbatim on the commandline when invoking iwyu?

@Wumpf
Copy link
Owner

Wumpf commented Nov 3, 2017

I tried choosing the architecture dynamically, but hit problems with iwyu itself. See here:
https://github.com/Wumpf/IncludeToolbox/blob/master/IncludeToolbox/IncludeWhatYouUse/IWYU.cs#L259
Do you know how to run iwyu with x86 on windows? I tried and got error: unknown target CPU 'x86'

You can add additional iwyu commands in the settings dialog: Include Toolbox > Include-What-You-Use > iwyu options > Additional Parameters

@Wumpf Wumpf changed the title -march=x86-64 not enough IWYU runs always with -march=x86-64 Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants