Skip to content

Commit 3f36fee

Browse files
committed
ci: 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 d368b44 commit 3f36fee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ jobs:
642642

643643
- name: clang+sanitize
644644
args: >-
645-
"-Db_sanitize=address,undefined"
645+
"-Db_sanitize=address,undefined -Db_lundef=false"
646646
extra_envs:
647647
CC: clang
648648
CXX: clang++
@@ -656,7 +656,7 @@ jobs:
656656
# Use Visual Studio supplied clang-cl instead.
657657
- name: clang-cl+sanitize
658658
args: >-
659-
"-Db_sanitize=address,undefined"
659+
"-Db_sanitize=address,undefined -Db_lundef=false"
660660
extra_envs:
661661
CC: clang-cl
662662
CXX: clang-cl

0 commit comments

Comments
 (0)