Repository navigation
Commit 1fb25c2
committed
fix(build): define CBM_SANITIZED_BUILD in TSan flags too
CFLAGS_TEST/CXXFLAGS_TEST already define CBM_SANITIZED_BUILD via
SANITIZED_DEFINE, but CFLAGS_TSAN/CXXFLAGS_TSAN never did. This left
mem_override_posix.c's !defined(CBM_SANITIZED_BUILD) guard always true
under make test-tsan, compiling __wrap_free/__wrap_realloc (with their
__real_free/__real_realloc forward declarations) into a link that never
passes -Wl,--wrap=... — undefined reference at link time.
Signed-off-by: Pedro Ramos <131530838+pr9000@users.noreply.github.com>1 parent 2496d8f commit 1fb25c2
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments