mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Allow using ASAN on OpenHarmony by adding target specific configuration. This also relaxes the version requirement for the clang compiler when using asan, since asan also has runtime checks, which should fail if instrumented code relies on an incompatible libasan version (not tested). Additional comments: - Remove `TARGET_LDFLAGS = -static-libasan` since anyway rustc invokes the linker, so this flag has no effect. - Enable frame pointers with ASAN, since we are anyway debugging. It should probably be the default anyway. - We pass the with_asan option also to mach package, since hvigor needs to know that we are building for ASAN, otherwise it leads to a crash at startup. Testing: Tested manually on arm64 OpenHarmony. Known issues: ASAN increases the stack usage, and this can cause segfaults due to hitting the stack protector on more complex pages. A follow-up PR could address this by increasing the stack size when compiled with asan in threads that hit this issue. --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> |
||
---|---|---|
.. | ||
devtools_tests/sources | ||
mutation | ||
platform | ||
__init__.py | ||
bootstrap_commands.py | ||
build_commands.py | ||
command_base.py | ||
devenv_commands.py | ||
devtools_tests.py | ||
gstreamer.py | ||
package_commands.py | ||
post_build_commands.py | ||
testing_commands.py | ||
try_parser.py | ||
util.py | ||
visual_studio.py |