Lines 25-30
Link Here
|
25 |
#include "clang/Basic/LangOptions.h" |
25 |
#include "clang/Basic/LangOptions.h" |
26 |
#include "clang/Basic/ObjCRuntime.h" |
26 |
#include "clang/Basic/ObjCRuntime.h" |
27 |
#include "clang/Basic/Version.h" |
27 |
#include "clang/Basic/Version.h" |
|
|
28 |
#include "clang/Driver/Distro.h" |
28 |
#include "clang/Driver/DriverDiagnostic.h" |
29 |
#include "clang/Driver/DriverDiagnostic.h" |
29 |
#include "clang/Driver/Options.h" |
30 |
#include "clang/Driver/Options.h" |
30 |
#include "clang/Driver/SanitizerArgs.h" |
31 |
#include "clang/Driver/SanitizerArgs.h" |
Lines 4839-4845
void Clang::ConstructJob(Compilation &C, const JobAction &JA,
Link Here
|
4839 |
|
4840 |
|
4840 |
if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig, |
4841 |
if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig, |
4841 |
getToolChain().getTriple().isOSBinFormatELF() && |
4842 |
getToolChain().getTriple().isOSBinFormatELF() && |
4842 |
getToolChain().useIntegratedAs())) |
4843 |
getToolChain().useIntegratedAs() && |
|
|
4844 |
Distro(D.getVFS()) != Distro::Gentoo)) |
4843 |
CmdArgs.push_back("-faddrsig"); |
4845 |
CmdArgs.push_back("-faddrsig"); |
4844 |
|
4846 |
|
4845 |
// Finally add the compile command to the compilation. |
4847 |
// Finally add the compile command to the compilation. |