[Midnightbsd-cvs] mports [24695] trunk/lang/v8: add compiler patch
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Nov 24 15:49:07 EST 2018
Revision: 24695
http://svnweb.midnightbsd.org/mports/?rev=24695
Author: laffer1
Date: 2018-11-24 15:49:06 -0500 (Sat, 24 Nov 2018)
Log Message:
-----------
add compiler patch
Modified Paths:
--------------
trunk/lang/v8/Makefile
Added Paths:
-----------
trunk/lang/v8/files/extra-patch-src-stub-cache.cc
Modified: trunk/lang/v8/Makefile
===================================================================
--- trunk/lang/v8/Makefile 2018-11-24 20:45:57 UTC (rev 24694)
+++ trunk/lang/v8/Makefile 2018-11-24 20:49:06 UTC (rev 24695)
@@ -2,6 +2,7 @@
PORTNAME= v8
PORTVERSION= 3.18.5
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= FREEBSD_LOCAL/vanilla
@@ -10,11 +11,17 @@
LICENSE= bsd3
+CONFLICTS_INSTALL= v8-devel-[0-9]*
+
+ONLY_FOR_ARCHS= i386 amd64
+
+PORTSCOUT= limit:^3.18.*
+
ALL_TARGET= native
MAKE_ARGS= library=shared
MAKE_ENV= CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
USE_LDCONFIG= yes
-USES= compiler cpe execinfo gmake python:2 shebangfix tar:xz
+USES= compiler cpe gmake python:2.7 shebangfix tar:xz
CPE_VENDOR= google
@@ -31,9 +38,13 @@
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
.else
MAKE_ARGS+= strictaliasing=off
USE_GCC= any
Added: trunk/lang/v8/files/extra-patch-src-stub-cache.cc
===================================================================
--- trunk/lang/v8/files/extra-patch-src-stub-cache.cc (rev 0)
+++ trunk/lang/v8/files/extra-patch-src-stub-cache.cc 2018-11-24 20:49:06 UTC (rev 24695)
@@ -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));
+ }
+
+
Property changes on: trunk/lang/v8/files/extra-patch-src-stub-cache.cc
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list