mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +00:00
ci: Force ucontext in ASAN builds (#2775)
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
{% set sanitizer_opt_map = {"asan": "address", "tsan": "thread", "ubsan": "undefined"} %}
|
{% set sanitizer_opt_map = {"asan": "address", "tsan": "thread", "ubsan": "undefined"} %}
|
||||||
{% set sanitizer = sanitizer_opt_map[sani] %}
|
{% set sanitizer = sanitizer_opt_map[sani] %}
|
||||||
|
|
||||||
|
{% set sanitizer_b2_flags_map = {"address": "define=BOOST_USE_ASAN=1 context-impl=ucontext address-sanitizer=on", "thread": "thread-sanitizer=on", "undefined": "undefined-sanitizer=on"} %}
|
||||||
|
{% set sanitizer_b2_flags_str = sanitizer_b2_flags_map[sanitizer] %}
|
||||||
|
|
||||||
{% set sanitizer_build_flags_str = "-fsanitize=" ~ sanitizer ~ " -g -O1 -fno-omit-frame-pointer" %}
|
{% set sanitizer_build_flags_str = "-fsanitize=" ~ sanitizer ~ " -g -O1 -fno-omit-frame-pointer" %}
|
||||||
{% set sanitizer_build_flags = sanitizer_build_flags_str.split(' ') %}
|
{% set sanitizer_build_flags = sanitizer_build_flags_str.split(' ') %}
|
||||||
{% set sanitizer_link_flags_str = "-fsanitize=" ~ sanitizer %}
|
{% set sanitizer_link_flags_str = "-fsanitize=" ~ sanitizer %}
|
||||||
@@ -11,7 +14,8 @@
|
|||||||
include({{ compiler }})
|
include({{ compiler }})
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
boost/*:extra_b2_flags="cxxflags=\"{{ sanitizer_build_flags_str }}\" linkflags=\"{{ sanitizer_link_flags_str }}\""
|
boost/*:extra_b2_flags="{{ sanitizer_b2_flags_str }}"
|
||||||
|
boost/*:without_context=False
|
||||||
boost/*:without_stacktrace=True
|
boost/*:without_stacktrace=True
|
||||||
|
|
||||||
[conf]
|
[conf]
|
||||||
|
|||||||
Reference in New Issue
Block a user