-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
--features=asan
doesn't work on macOS
#192
Comments
We stopped making dylib files available in the toolchain during the build phase because the files will not be available when running or deploying your application. But perhaps we overdid it, and we can make the .dylib files in the To test, you can add a glob expression here and see if it works for you. If it does, please send a PR. |
For iOS builds with the standard bazel toolchain we copy the dylibs into the shipping bundle in that case, but that's easier in that setup because there's a clear place to do that piece |
Thanks. My original imagination here was that the osx sysroot could be a good proxy of what's available at runtime. And so if a dylib is not there, it's not available. But this looks like a special case. |
…zel-contrib#250) Add dylibs to the `lib` target so that santizers work properly on MacOS. Resolves bazel-contrib#192. --------- Co-authored-by: Siddhartha Bagaria <starsid@gmail.com>
Building my code with
bazel build --features=asan
fails with:ld: file not found: external/llvm_toolchain_llvm/lib/clang/15.0.6/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
Using LLVM 15.0.6.
The file does exist. I haven't really investigated much, just filing the issue so it's common knowledge.
The text was updated successfully, but these errors were encountered: