Skip to content

Commit

Permalink
ci: try setting LSAN_OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
q66 committed May 6, 2024
1 parent fea681b commit 09413f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .ci/build-cffi
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if [ -n "$SANITIZE" ]; then
extra_ldflags="${extra_ldflags} -fsanitize=address -fuse-ld=lld"
# cfi-icall is buggy with the clang on CI, also the same functionality
# is covered by -fsanitize=function (included in undefined)
export CXXFLAGS="-fsanitize=undefined -fsanitize-trap=undefined -fsanitize=address -fsanitize=cfi -fno-sanitize=cfi-icall,leak -fvisibility=hidden -flto=thin"
export CXXFLAGS="-fsanitize=undefined -fsanitize-trap=undefined -fsanitize=address -fsanitize=cfi -fno-sanitize=cfi-icall -fvisibility=hidden -flto=thin"
export LDFLAGS="${CXXFLAGS} -fuse-ld=lld"
# only test the most recent lua version
LUA_VERSIONS=${LUA_VERSIONS%% *}
Expand Down Expand Up @@ -200,6 +200,9 @@ done

echo ">> Building and testing cffi..."

# lsan seems broken in the ci env?
export LSAN_OPTIONS=detect_leaks=0

for luaver in ${LUA_VERSIONS}; do
deps_dir="deps-${luaver}-${expected_triplet}"
lua_path="$(pwd)/${deps_dir}/lua"
Expand Down

0 comments on commit 09413f2

Please sign in to comment.