From c646c21ddb278fd0ccc7eae9fac364888830ea07 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 22 Sep 2020 23:21:02 +0000 Subject: MFH: r549625 misc/glow: Fix build on 13 Add the workaround for a bug in Glow that it uses the default C++ compiler when the supplied LLVM version is different. Reported by: fallout Approved by: ports-secteam (fluffy) --- misc/glow/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/glow/Makefile b/misc/glow/Makefile index 34e030e6270e..f020fb860c15 100644 --- a/misc/glow/Makefile +++ b/misc/glow/Makefile @@ -34,6 +34,7 @@ CMAKE_ARGS= -DFREEBSD_LLVM_VERSION:STRING=${LLVM_VER} -DGIT_SHA1:STRING="\"${GH_ CMAKE_OFF= GLOW_BUILD_EXAMPLES GLOW_BUILD_TESTS BINARY_ALIAS= python=${PYTHON_CMD} +BINARY_ALIAS+= c++=${LOCALBASE}/bin/clang++${LLVM_VER:S/.//} # workaround for the llvm version mixup: https://github.com/pytorch/glow/issues/4910 LLVM_VER= ${LLVM_DEFAULT:C/(.)(.)/\1.\2/} -- cgit v1.2.3