Skip to content

Commit 6bd9263

Browse files
committed
ci/meson: Set -Db_lundef=false when building with sanitisers under Clang
Clang cannot handle building shared libraries with sanitizers and -Wl,--no-undefined (set by default unless explicitly disabled with -Db_lundef=false). This commit prefixes CI in case shared libraries are built with sanitisers. Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
1 parent 70fa0d3 commit 6bd9263

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,14 @@ jobs:
643643
- name: clang+sanitize
644644
args: >-
645645
"-Db_sanitize=address,undefined"
646+
"-Db_lundef=false"
646647
extra_envs:
647648
CC: clang
648649
CXX: clang++
649650
- name: clang+msan
650-
args: -Db_sanitize=memory
651+
args: >-
652+
"-Db_sanitize=memory"
653+
"-Db_lundef=false"
651654
extra_envs:
652655
CC: clang
653656
CXX: clang++
@@ -657,6 +660,7 @@ jobs:
657660
- name: clang-cl+sanitize
658661
args: >-
659662
"-Db_sanitize=address,undefined"
663+
"-Db_lundef=false"
660664
extra_envs:
661665
CC: clang-cl
662666
CXX: clang-cl

0 commit comments

Comments
 (0)