We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Started going through BinSkim errors on my Rust build and here is the first one.
Not sure one should recommend LTCG on debug builds?
BinSkim Note BA6006 - File: target/x86_64-pc-windows-msvc/debug/MY_BINARY.exe. Signature: 84a4a382eb5e8dba8929ed2f3596a10c9bceb4e79ea132a764156242a6ac0190Tool: BinSkim: Rule: BA6006 (EnableLinkTimeCodeGeneration). https://github.com/microsoft/binskim/blob/main/docs/BinSkimRules.md#rule-BA6006EnableLinkTimeCodeGeneration'MY_BINARY.exe' was compiled without Link Time Code Generation (/LTCG). Enabling LTCG can improve optimizations and performance. For VC projects use WholeProgramOptimization property with 'true' value.
The text was updated successfully, but these errors were encountered:
@xnorpx I think the main purpose of BinSkim is to check release/production code, so you're right for some debug cases it might be too strict.
What are you suggesting?
Sorry, something went wrong.
@marekaldorf My suggestion would be to not emit this warning on Debug builds.
marekaldorf
No branches or pull requests
Started going through BinSkim errors on my Rust build and here is the first one.
Not sure one should recommend LTCG on debug builds?
BinSkim Note BA6006 - File: target/x86_64-pc-windows-msvc/debug/MY_BINARY.exe. Signature: 84a4a382eb5e8dba8929ed2f3596a10c9bceb4e79ea132a764156242a6ac0190Tool: BinSkim: Rule: BA6006 (EnableLinkTimeCodeGeneration). https://github.com/microsoft/binskim/blob/main/docs/BinSkimRules.md#rule-BA6006EnableLinkTimeCodeGeneration'MY_BINARY.exe' was compiled without Link Time Code Generation (/LTCG). Enabling LTCG can improve optimizations and performance.
For VC projects use WholeProgramOptimization property with 'true' value.
The text was updated successfully, but these errors were encountered: