[PATCH] D80488: Teach `-fsanitize=fuzzer` to respect `-static` and `-static-libstdc++` when adding C++ standard libraries.
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 24 19:11:37 PDT 2020
MaskRay added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:754
+ if (OnlyLibstdcxxStatic)
+ CmdArgs.push_back("-Bstatic");
TC.AddCXXStdlibLibArgs(Args, CmdArgs);
----------------
This is correct. If GNU ld<2.25 compatibility is not needed, `--push-state`, `-Bstatic`, link, `--pop-state`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80488/new/
https://reviews.llvm.org/D80488
More information about the cfe-commits
mailing list