Date: Tue, 14 Sep 2021 13:51:18 +0200 From: Jan Beich <jbeich@FreeBSD.org> To: Emmanuel Vadot <manu@FreeBSD.org> Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: 4f3befc2a362 - main - ports-mgmt/pkg-devel: Add an option for building with sanitizer Message-ID: <bl4v-ml3d-wny@FreeBSD.org> In-Reply-To: <202109141010.18EAA5Yb091282__26781.7482979567$1631614221$gmane$org@gitrepo.freebsd.org> (Emmanuel Vadot's message of "Tue, 14 Sep 2021 10:10:05 GMT") References: <202109141010.18EAA5Yb091282__26781.7482979567$1631614221$gmane$org@gitrepo.freebsd.org>
index | next in thread | previous in thread | raw e-mail
Emmanuel Vadot <manu@FreeBSD.org> writes:
> -OPTIONS_DEFINE= DOCS
> +OPTIONS_DEFINE= DOCS SAN
> +SAN_DESC= Enable sanitizers (ASAN and UBSAN)
FWIW, other ports use different option name:
net-p2p/c-lightning/Makefile
38:ASAN_CONFIGURE_ENABLE= address-sanitizer
39:ASAN_DESC= Compile with address-sanitizer
security/snort3/Makefile
35:ADDRESSSANITIZER_DESC= Enable address sanitizer
44:ADDRESSSANITIZER_CMAKE_BOOL= ENABLE_ADDRESS_SANITIZER
41:THREADSANITIZER_DESC= Enable thread sanitizer
54:THREADSANITIZER_CMAKE_BOOL= ENABLE_THREAD_SANITIZER
>
> +.if ${PORT_OPTIONS:MSAN}
> +CONFIGURE_ARGS+= --with-asan --with-ubsan
> +.endif
With option helpers it can be more declarative e.g.,
SAN_CONFIGURE_WITH= asan ubsan
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bl4v-ml3d-wny>
