git: a08da135ed32 - main - Features/sanitize.mk: Support qmake
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Mar 2025 12:35:17 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a08da135ed320f1e4015c0aefe336085d9be5e2e
commit a08da135ed320f1e4015c0aefe336085d9be5e2e
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-03-03 08:22:53 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-03-14 12:35:14 +0000
Features/sanitize.mk: Support qmake
Differential Revision: https://reviews.freebsd.org/D49210
Approved by: bapt
---
Mk/Features/sanitize.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Mk/Features/sanitize.mk b/Mk/Features/sanitize.mk
index 6d2e3019705e..02dbdad94c8b 100644
--- a/Mk/Features/sanitize.mk
+++ b/Mk/Features/sanitize.mk
@@ -18,6 +18,12 @@ SANITIZE_Include_MAINTAINER= portmgr@FreeBSD.org
SANITIZE_FLAGS?= address
. if defined(_INCLUDE_USES_MESON_MK)
MESON_ARGS+= -Db_sanitize=${SANITIZE_FLAGS}
+. elif defined(_INCLUDE_USES_QMAKE_MK) || defined(_QT_DIST_MK_INCLUDED)
+ QMAKE_ARGS+= QMAKE_LFLAGS_NOUNDEF=
+ QMAKE_ARGS+= CONFIG+=sanitize
+. for f in ${SANITIZE_FLAGS}
+ QMAKE_ARGS+= CONFIG+=sanitize_${f}
+. endfor
. else
CFLAGS+= -fsanitize=${SANITIZE_FLAGS}
CXXFLAGS+= -fsanitize=${SANITIZE_FLAGS}