Skip to content

Commit 954fe68

Browse files
added more info to package id configs
Signed-off-by: Pratik Mankawde <[email protected]>
1 parent 1d38504 commit 954fe68

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

conan/profiles/sanitizers

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ include(default)
44
{% set sanitizers = os.getenv("SANITIZERS") %}
55

66
[conf]
7-
{% if sanitizers == "Address" or sanitizers == "Thread" %}
8-
user.package:sanitizers={{ sanitizers }}
9-
tools.info.package_id:confs+=["user.package:sanitizers"]
10-
{% endif %}
117

128
{% if compiler == "gcc" %}
139
{% set asan_sanitizer_flags = "-fsanitize=address,"~default_sanitizer_flags~" -mcmodel=large -fno-PIC" %}
@@ -41,3 +37,8 @@ tools.build:exelinkflags+=['{{tsan_sanitizer_flags}}']
4137
{% endif %}
4238

4339
{% endif %}
40+
41+
{% if sanitizers == "Address" or sanitizers == "Thread" %}
42+
user.package:sanitizers={{ sanitizers }}
43+
tools.info.package_id:confs+=["user.package:sanitizers", "tools.build:cxxflags", "tools.build:exelinkflags", "tools.build:sharedlinkflags"]
44+
{% endif %}

0 commit comments

Comments
 (0)