Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asan/Tsan/Msan #13

Open
dionescu opened this issue May 5, 2018 · 2 comments
Open

Asan/Tsan/Msan #13

dionescu opened this issue May 5, 2018 · 2 comments

Comments

@dionescu
Copy link

dionescu commented May 5, 2018

Is there a way to use Asan/Tsan/Msan with this toolchain? When I try (e.g. asan) I get an error:

chromium_ld: error: cannot open external/co_vsco_bazel_toolchains/tools/cpp/tool_wrappers/lib/clang/6.0.0/lib/linux/libclang_rt.asan-x86_64.a: No such file or directory

For some reason, chromium_ld is looking for libclang_rt.asan-x86_64.a under external/co_vsco_bazel_toolchains/tools/cpp/tool_wrappers instead of external/org_chromium_clang_linux_x64/...

@dionescu
Copy link
Author

dionescu commented May 14, 2018

I manged to get libc++ compiled under the sanitizers by passing extra flags in libcxx.bzl and everything appears to work correctly. The configuration I use is slightly different so I'm not sure why the linking error above happens. In any case, it would be very useful if this toolchain would support the sanitizers out of the box.

@jlisee
Copy link

jlisee commented Aug 6, 2018

@dionescu what flags did you have to pass?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants