Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2021 02:09:52 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r561893 - branches/2021Q1/devel/benchmark
Message-ID:  <202101180209.10I29qi5002256@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Mon Jan 18 02:09:52 2021
New Revision: 561893
URL: https://svnweb.freebsd.org/changeset/ports/561893

Log:
  MFH: r561892
  
  devel/benchmark: fix build on GCC architectures
  
  Don't add -Wno-thread-safety-analysis, which doesn't work with GCC and add -Wno-stringop-truncation.

Modified:
  branches/2021Q1/devel/benchmark/Makefile
Directory Properties:
  branches/2021Q1/   (props changed)

Modified: branches/2021Q1/devel/benchmark/Makefile
==============================================================================
--- branches/2021Q1/devel/benchmark/Makefile	Mon Jan 18 02:09:03 2021	(r561892)
+++ branches/2021Q1/devel/benchmark/Makefile	Mon Jan 18 02:09:52 2021	(r561893)
@@ -19,7 +19,9 @@ USE_LDCONFIG=	yes
 CMAKE_ON=	BUILD_SHARED_LIBS
 CMAKE_OFF=	BENCHMARK_ENABLE_TESTING
 
-CXXFLAGS+=	-Wno-thread-safety-analysis # workaround for https://github.com/google/benchmark/issues/655
+CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang=	-Wno-thread-safety-analysis # workaround for https://github.com/google/benchmark/issues/655
+CXXFLAGS_gcc=	-Wno-stringop-truncation
 CXXFLAGS+=	-Wno-sign-compare # workaround for https://github.com/google/googletest/issues/1752
 
 do-test: # Broken: https://github.com/google/benchmark/issues/979



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101180209.10I29qi5002256>