diff options
author | Mitch Phillips <31459023+hctim@users.noreply.github.com> | 2024-06-27 08:03:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-27 08:03:20 +0200 |
commit | 73e6f9f95b51d7be1f93deded219005027f8d270 (patch) | |
tree | 0cba105a74bd7e44eede29728da22cfa49417ae0 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | 6b931ab516616127ce4cd5a0ad5e37d5a1d1696b (diff) | |
download | llvm-73e6f9f95b51d7be1f93deded219005027f8d270.zip llvm-73e6f9f95b51d7be1f93deded219005027f8d270.tar.gz llvm-73e6f9f95b51d7be1f93deded219005027f8d270.tar.bz2 |
gn: hwasan: fixup hwasan-preinit (#96748)
The build rule for hwasan_preinit outputs libclang_rt.hwasan_preinit,
but clang expects hwasan-preinit (with a dash, rather than an
underscore) when selecting the library in the frontend.
Also, we were missing the hwasan-preinit dependency in check-hwasan.
For posterity, this now passes hwasan unit tests on Android with:
$ cat args.gn
clang_base_path = "/usr/local"
llvm_enable_assertions = true
llvm_targets_to_build = "all"
android_ndk_path = "/path/to/Android.sdk/ndk/25.2.9519653"
$ /path/to/llvm/utils/gn/gn.py gen build
$ ANDROID_SERIAL=xxx ninja -C build check-hwasan
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions