This flag can be used to force linking of CXX-specific parts
of sanitizer runtimes into the final executable. It gives more precise
control than --driver-mode=g++ and comes handy when user links several
object files with sanitized C++ code into an executable, but wants
to provide libstdc++ himself, instead of relying on Clang dirver's
behavior.
Details
Diff Detail
Event Timeline
include/clang/Driver/Options.td | ||
---|---|---|
388 | Seems like a bad flag name choice; this already means "link to libink-cxx-sanitizer". Please use a double-dash prefix or similar. Is there any other similar flag name that this could be modeled after? |
Rename the flag to --link-cxx-sanitizer.
include/clang/Driver/Options.td | ||
---|---|---|
388 | Good catch. Renamed to --link-cxx-sanitizer. I wasn't able to come up with similar flag... |
include/clang/Driver/Options.td | ||
---|---|---|
1537 | I took a look though our existing flags, and only thing similar to this that I could find was -fobjc-link-runtime. Maybe something like -fsanitize-link-c++-runtime? |
Rename the flag to -fsanitize-link-c++-runtime.
include/clang/Driver/Options.td | ||
---|---|---|
1537 | Good idea. Renamed. |
Seems like a bad flag name choice; this already means "link to libink-cxx-sanitizer". Please use a double-dash prefix or similar. Is there any other similar flag name that this could be modeled after?