[PATCH] D55828: [clang] [Driver] Disable -faddrsig by default on NetBSD
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 19 09:29:17 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC349647: [Driver] Disable -faddrsig by default on NetBSD (authored by mgorny, committed by ).
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55828/new/
https://reviews.llvm.org/D55828
Files:
lib/Driver/ToolChains/Clang.cpp
Index: lib/Driver/ToolChains/Clang.cpp
===================================================================
--- lib/Driver/ToolChains/Clang.cpp
+++ lib/Driver/ToolChains/Clang.cpp
@@ -5273,7 +5273,8 @@
if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig,
(TC.getTriple().isOSBinFormatELF() ||
TC.getTriple().isOSBinFormatCOFF()) &&
- TC.useIntegratedAs()))
+ TC.useIntegratedAs() &&
+ RawTriple.getOS() != llvm::Triple::NetBSD))
CmdArgs.push_back("-faddrsig");
// Finally add the compile command to the compilation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55828.178899.patch
Type: text/x-patch
Size: 648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181219/8bcc0dae/attachment.bin>
More information about the cfe-commits
mailing list