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

SqlLite Project fails to build due to contradictory command line arguments #1313

Open
dwcullop opened this issue Nov 25, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@dwcullop
Copy link
Member

dwcullop commented Nov 25, 2024

Describe your environment.
Building on Windows 11 with VS 2022 17.12.1 for UWP on x64/ARM64

Steps to reproduce.

  • Invoke .\build-win.ps1 release x64,arm64 after cloning the repo

What is the expected behavior?
Successful compilation

What is the actual behavior?
Compiler reports:
error D8016: '/O1' and '/RTC1' command-line options are incompatible [C:\Code\Git\SurfaceOneDS\cpp_client_telemetry\sqlite\sqlite.vcxproj]

Additional context.
On the one hand, it seems like I'm doing something wrong because there haven't been any changes to these build settings in years. On the other hand, the options are contradictory. O1 means "minimize size" and RTC1 means "add extra run time checks", and you can't really do both of those at the same time. So it could be that more recent versions of Visual Studio are just stricter about requiring the users to be clear about what they want, but I don't think that's true either. I'm not sure how this ever compiled... Which brings me back to I'm missing something...

If it is an issue that needs to be addressed, the fix is very simple and I'm happy to submit a PR but want to make sure it isn't user-error on my part first.

@dwcullop dwcullop added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant