From af33dacf60d6e56f5f4c91a72542cf56aff071f0 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 29 Dec 2023 15:18:06 +0100 Subject: [PATCH] Test with ASAN --- tests/dockerfiles/Dockerfile.alpine | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/dockerfiles/Dockerfile.alpine b/tests/dockerfiles/Dockerfile.alpine index 3478814d4..30a34fba6 100644 --- a/tests/dockerfiles/Dockerfile.alpine +++ b/tests/dockerfiles/Dockerfile.alpine @@ -7,7 +7,7 @@ ENV PHPIZE_DEPS \ dpkg-dev dpkg \ file \ g++ \ - gcc \ + clang \ libc-dev \ make \ pkgconf \ @@ -48,6 +48,9 @@ ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O0 -D_LARGEFILE_SOURCE -D_ ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O0 -pie" +ENV CC=clang +ENV CXX=clang++ + ENV GPG_KEYS 1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA ENV PHP_VERSION 8.3.1 @@ -163,6 +166,7 @@ RUN set -eux; \ --disable-cgi \ \ --enable-debug \ + --enable-address-sanitizer \ --enable-fpm \ --with-ffi \ --enable-pcntl \