forked from OSchip/llvm-project
parent
48da4f4691
commit
a6775b622f
|
@ -3214,11 +3214,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("-fno-threadsafe-statics");
|
||||
|
||||
// -fuse-cxa-atexit is default.
|
||||
if (!Args.hasFlag(options::OPT_fuse_cxa_atexit,
|
||||
options::OPT_fno_use_cxa_atexit,
|
||||
getToolChain().getTriple().getOS() != llvm::Triple::Cygwin &&
|
||||
getToolChain().getTriple().getOS() != llvm::Triple::MinGW32 &&
|
||||
getToolChain().getArch() != llvm::Triple::hexagon) ||
|
||||
if (!Args.hasFlag(
|
||||
options::OPT_fuse_cxa_atexit, options::OPT_fno_use_cxa_atexit,
|
||||
getToolChain().getTriple().getOS() != llvm::Triple::Cygwin &&
|
||||
getToolChain().getTriple().getOS() != llvm::Triple::MinGW32 &&
|
||||
getToolChain().getArch() != llvm::Triple::hexagon) ||
|
||||
KernelOrKext)
|
||||
CmdArgs.push_back("-fno-use-cxa-atexit");
|
||||
|
||||
|
|
Loading…
Reference in New Issue