File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,17 @@ local-install-plugins: build-plugins
57
57
touch $(BUILD_WORKSPACE ) /artifacts.xml
58
58
$(ECLIPSE_AUTO ) -initialize
59
59
60
+ # Work around https://bugs.eclipse.org/bugs/show_bug.cgi?id=465693 (actually a JDK bug)
61
+ # Otherwise the net.sf.j2s.java.core build wil segfault about half of the time.
62
+ # Annoyingly, the segfault causes java to exit 0; I was unable to figure out why.
63
+ # So we add some extra checks, testing for the absence of crash logs.
64
+ BADMETHOD1 = org/eclipse/jdt/internal/compiler/parser/TypeConverter.decodeType
65
+ WORKAROUND1 = -vmargs -XX:CompileCommand=exclude,$(BADMETHOD1 )
60
66
build-libs : local-install-plugins
67
+ test ! -f * err* .log
61
68
set -e; for i in $( CORE_J2SLIB) ; do \
62
- $(ECLIPSE_J2S ) -cmd build -path $$ PWD/sources/$$ i; \
69
+ $(ECLIPSE_J2S ) -cmd build -path $$ PWD/sources/$$ i $(WORKAROUND1 ) ; \
70
+ test ! -f * err* .log; \
63
71
done
64
72
mkdir -p sources/net.sf.j2s.lib/bin sources/net.sf.j2s.lib/j2slib
65
73
cd sources/net.sf.j2s.lib/bin && jar xf ../library.jar
You can’t perform that action at this time.
0 commit comments