Skip to main content

hardenstack

Specifies the stack protection level.

hardenstack "value"

Parameters​

value selects the protection level:

ValueGCC and ClangMSVCDescription
DefaultUses compiler default behavior for stack protection.
Off-fno-stack-protector/GS-Disable stack protection, including toolset defaults.
On-fstack-protector/GSProtect functions the compiler considers vulnerable.
Strong-fstack-protector-strong/GSProvides at least as strong of protection guarantees as On.
All-fstack-protector-all/GSProvides at least as strong of protection guarantees as Strong.

Applies To​

Project and file configurations.

Availability​

Premake 5.0.1 or later.

Examples​

hardenstack "Strong"
filter "configurations:Release"
hardenstack "All"

See Also​