[clang] Add option -fstdlib-hardening= (PR #78763)

Louis Dionne via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 19 12:57:05 PST 2024


================
@@ -275,6 +275,8 @@ def warn_drv_unknown_argument_clang_cl_with_suggestion : Warning<
   InGroup<UnknownArgument>;
 def err_drv_unknown_target_triple : Error<"unknown target triple '%0'">;
 
+def err_drv_stdlib_hardening_unavailable : Error<"libc++ hardening is available only when libc++ is used">;
----------------
ldionne wrote:

```suggestion
def err_drv_stdlib_hardening_unavailable : Error<"standard library hardening is available only when libc++ is used">;
```

https://github.com/llvm/llvm-project/pull/78763


More information about the cfe-commits mailing list