Try to fix #841
As I see in #841 clang with undefined sanitizer with libstdc++ can't be fixed with additional compile/link option
I don't think this change is desirable. If you want to use UBSAN, you have to link in the required libraries.
I don't think libc++ required for clang ubsan. Without this patch clang with libstdc++ with ubsan is unusable, I think it's really annoying, and patch is simple, and don't affect others configuration
@derekmauro Why I can't use abseil with clang ubsan with libstdc++?
I don't think this change is desirable.
I don't understand why
This option cannot be directly set, so I think if exist some valid configuration that doesn't work with this option we want to disable option for this configuration
@derekmauro Can you answer?
@derekmauro I still hope you will answer.
Valery Mironov @.***> schrieb am Fr., 14. Okt. 2022, 9:44 PM:
@derekmauro https://github.com/derekmauro I still hope you will answer.
— Reply to this email directly, view it on GitHub https://github.com/abseil/abseil-cpp/pull/1144#issuecomment-1279391946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOSHZHSY6FPI66M6TIJUF4TWDGZ2DANCNFSM5ROGBMPA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
GCC with libstdc++:
bazel build --copt=-fsanitize=undefined --linkopt=-fsanitize=undefined --cxxopt=-std=c++14 ...
Clang with libstdc++:
CC=clang bazel build --copt=-fsanitize=undefined --linkopt=-fsanitize=undefined --linkopt=-fsanitize-link-c++-runtime --cxxopt=-std=c++14 ...
@derekmauro What is your version of gcc, clang, libstdc++?
@derekmauro What is your version of gcc, clang, libstdc++?
@derekmauro What is your version of gcc, clang, libstdc++?
If you are having a problem, you should be telling me how to reproduce it.