clang: allow -fstack-clash-protection on FreeBSD
-fstack-clash-protection was added in Clang commit e67cbac81211 but was enabled only on Linux. It should work fine on FreeBSD as well, so enable it. To be discussed and upstreamed with a test. The OS test should probably just be removed. Reviewed by: dim MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27366
This commit is contained in:
parent
78b8d3f136
commit
3063e1e56b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368019
@ -2967,7 +2967,7 @@ static void RenderSCPOptions(const ToolChain &TC, const ArgList &Args,
|
||||
ArgStringList &CmdArgs) {
|
||||
const llvm::Triple &EffectiveTriple = TC.getEffectiveTriple();
|
||||
|
||||
if (!EffectiveTriple.isOSLinux())
|
||||
if (!EffectiveTriple.isOSFreeBSD() && !EffectiveTriple.isOSLinux())
|
||||
return;
|
||||
|
||||
if (!EffectiveTriple.isX86() && !EffectiveTriple.isSystemZ() &&
|
||||
|
Loading…
Reference in New Issue
Block a user