svn commit: r472824 - in head/lang/v8: . files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Tue Jun 19 21:46:27 UTC 2018


Author: sunpoet
Date: Tue Jun 19 21:46:26 2018
New Revision: 472824
URL: https://svnweb.freebsd.org/changeset/ports/472824

Log:
  Fix build with Clang 6
  
  PR:		228320
  Submitted by:	Matthew Grooms <mgrooms at shrew.net>

Added:
  head/lang/v8/files/extra-patch-src-stub-cache.cc   (contents, props changed)
Modified:
  head/lang/v8/Makefile

Modified: head/lang/v8/Makefile
==============================================================================
--- head/lang/v8/Makefile	Tue Jun 19 21:08:33 2018	(r472823)
+++ head/lang/v8/Makefile	Tue Jun 19 21:46:26 2018	(r472824)
@@ -39,6 +39,10 @@ CXXFLAGS+=	-Wno-unused-const-variable
 CXXFLAGS+=	-Wno-tautological-undefined-compare
 .if ${COMPILER_VERSION} >= 36
 CXXFLAGS+=	-Wno-unused-local-typedef
+.if ${COMPILER_VERSION} >= 60
+CXXFLAGS+=	-Wno-null-pointer-arithmetic -Wno-vexing-parse
+EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-src-stub-cache.cc
+.endif
 .endif
 .endif
 .endif

Added: head/lang/v8/files/extra-patch-src-stub-cache.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/v8/files/extra-patch-src-stub-cache.cc	Tue Jun 19 21:46:26 2018	(r472824)
@@ -0,0 +1,11 @@
+--- src/stub-cache.cc.orig	2013-05-01 12:56:29 UTC
++++ src/stub-cache.cc
+@@ -1474,7 +1474,7 @@ Handle<Code> StubCompiler::GetCodeWithFl
+                                             Handle<Name> name) {
+   return (FLAG_print_code_stubs && !name.is_null() && name->IsString())
+       ? GetCodeWithFlags(flags, *Handle<String>::cast(name)->ToCString())
+-      : GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL));
++      : GetCodeWithFlags(flags, static_cast<char*>(NULL));
+ }
+ 
+ 


More information about the svn-ports-head mailing list