Skip to content

Commit d9dccec

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 64064d9 commit d9dccec

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
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,11 +660,14 @@ 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
663667
- name: clang-cl+msan
664-
args: -Db_sanitize=memory
668+
args: >-
669+
"-Db_sanitize=memory"
670+
"-Db_lundef=false"
665671
extra_envs:
666672
CC: clang-cl
667673
CXX: clang-cl

0 commit comments

Comments
 (0)