]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't build sanitizer runtimes under WITHOUT_CXX
authorEd Maste <emaste@FreeBSD.org>
Fri, 29 Oct 2021 00:49:12 +0000 (20:49 -0400)
committerEd Maste <emaste@FreeBSD.org>
Fri, 29 Oct 2021 14:05:49 +0000 (10:05 -0400)
commitad09e2c8cfbc2cf6f2b8826c121d6de8b3bfe96d
treeb42e99bea4f4200392bfe0ce9cd22389e8872d56
parent6547153e4618c3b57e5f76062de006a04ecbd64b
Don't build sanitizer runtimes under WITHOUT_CXX

In the past we built the sanitizer runtimes when building Clang
(and using Clang as the compiler) but 7676b388adbc changed this to
be conditional only on using Clang, to make the runtimes available
for external Clang.

They fail to build when WITHOUT_CXX is set though, so add MK_CXX
as part of the condition.

Reported by: Michael Dexter, Build Option Survey
Reviewed by: imp, jrtc27
Fixes: 7676b388adbc ("Always build the sanitizer runtimes...")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32731
lib/Makefile