cpp_client_telemetry icon indicating copy to clipboard operation
cpp_client_telemetry copied to clipboard

SqlLite Project fails to build due to contradictory command line arguments

Open dwcullop opened this issue 1 year ago • 0 comments

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 avatar Nov 25 '24 23:11 dwcullop