diff options
author | Gleb Popov <arrowd@FreeBSD.org> | 2024-04-11 15:13:15 +0300 |
---|---|---|
committer | Gleb Popov <arrowd@FreeBSD.org> | 2024-04-11 20:53:11 +0300 |
commit | 665b0219e541019b849fd5a1efdf032081dcf610 (patch) | |
tree | 7d3390fa499bc47613519c4512f883aab783f5b0 /Mk/Uses/meson.mk | |
parent | games/veloren-weekly: update to s20240411 (diff) |
Mk/Uses: Fix feature checks after my previous {WITH,WITHOUT}_*_PORTS change
Test Plan:
Take cmake.mk for example. Choosing a port with USES=cmake and running
`make -V CMAKE_BUILD_TYPE` gives "Release" and
`make -V CMAKE_BUILD_TYPE WITH_DEBUG=yes` gives "Debug". However,
`make -V CMAKE_BUILD_TYPE WITH_DEBUG_PORTS=this/port` still gives "Release"
unless this change is applied.
Differential Revision: https://reviews.freebsd.org/D44748
Fixes: d697653cffd19ddaf3cdee2589a830c72ab39777
Approved by: bapt
Diffstat (limited to 'Mk/Uses/meson.mk')
-rw-r--r-- | Mk/Uses/meson.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/Uses/meson.mk b/Mk/Uses/meson.mk index 571e8a990be0..c4c57af3fa18 100644 --- a/Mk/Uses/meson.mk +++ b/Mk/Uses/meson.mk @@ -51,9 +51,9 @@ CONFIGURE_ARGS+= -Db_colorout=never INSTALL_TARGET= install # should we have strip separate from WITH_DEBUG? -. if defined(WITH_DEBUG) +. if defined(_WITH_DEBUG) CONFIGURE_ARGS+= --buildtype debug -. elif defined(WITH_DEBUGINFO) +. elif defined(_WITH_DEBUGINFO) CONFIGURE_ARGS+= --buildtype debugoptimized . else CONFIGURE_ARGS+= --buildtype release \ |