[clang] [clang] Add support for omitting only global destructors (PR #104899)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 20 09:05:13 PDT 2024
================
@@ -7967,8 +7967,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
options::OPT_fno_keep_persistent_storage_variables);
Args.addOptInFlag(CmdArgs, options::OPT_fcomplete_member_pointers,
options::OPT_fno_complete_member_pointers);
- Args.addOptOutFlag(CmdArgs, options::OPT_fcxx_static_destructors,
- options::OPT_fno_cxx_static_destructors);
+ if (Arg *A = Args.getLastArg(options::OPT_cxx_static_destructors_EQ))
+ CmdArgs.push_back(
----------------
MaskRay wrote:
`A->render(Args, CmdArgs);`
https://github.com/llvm/llvm-project/pull/104899
More information about the cfe-commits
mailing list