diff options
| author | Petr Hosek <phosek@chromium.org> | 2017-02-24 03:17:41 +0000 |
|---|---|---|
| committer | Petr Hosek <phosek@chromium.org> | 2017-02-24 03:17:41 +0000 |
| commit | 162540ec1da81657b8003ce1554a07b5d6f26c02 (patch) | |
| tree | 88e77feb655ddc242005c8416a1f3e8f84e53b67 /clang/lib/Driver/ToolChains.cpp | |
| parent | a7d5916308907624199161b9454487cc30482341 (diff) | |
| download | bcm5719-llvm-162540ec1da81657b8003ce1554a07b5d6f26c02.tar.gz bcm5719-llvm-162540ec1da81657b8003ce1554a07b5d6f26c02.zip | |
[Driver] Enable SafeStack for Fuchsia targets
The runtime support is provided directly by the Fuchsia system C
library.
Patch by Roland McGrath
Differential Revision: https://reviews.llvm.org/D30238
llvm-svn: 296082
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
| -rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 533206e4061..495cc0a73b7 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -4860,6 +4860,12 @@ void Fuchsia::AddCXXStdlibLibArgs(const ArgList &Args, CmdArgs.push_back("-lunwind"); } +SanitizerMask Fuchsia::getSupportedSanitizers() const { + SanitizerMask Res = ToolChain::getSupportedSanitizers(); + Res |= SanitizerKind::SafeStack; + return Res; +} + /// DragonFly - DragonFly tool chain which can call as(1) and ld(1) directly. DragonFly::DragonFly(const Driver &D, const llvm::Triple &Triple, |

