<div dir="ltr"><div>Hi Oliver,</div><div><br></div><div>`--disable-cds-archive` disables CDS archive generation.</div><div><br></div><div>More generally, you can specify a different JVM for building purposes with --with-build-jdk. This is different from --with-boot-jdk in that it has to fit closely the target JVM - ideally, it has to be built from the same sources. Specifying --with-build-jdk prevents the built JVM from being used during building. Usually used for crossbuilds where the target VM won't run on the build hardware.</div><div><br></div><div>So you could build a good JVM from the master branch and use that as build jdk with your development branch, provided the branches are not too far off.</div><div><br></div><div>Cheers, Thomas</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 3, 2023 at 11:21 AM Oliver Kopp <<a href="mailto:kopp.dev@gmail.com">kopp.dev@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hey,</div><div><br></div><div>I am on Windows 10 and compiling using Cygwin. The code I am working on is verfy inside the JDK - and thus could prevent compilation. (I am trying to work on <a href="https://github.com/openjdk/jdk/pull/10704" target="_blank">https://github.com/openjdk/jdk/pull/10704</a>).</div><div><br></div><div>With some modifications of the code, compilation hangs at "
Creating CDS-NOCOOPS archive for jdk image for server"</div><div><br></div><div>$ make images<br>Building target 'images' in configuration 'windows-x86_64-server-release'<br>Compiling up to 89 files for jdk.jlink<br>Updating support/src.zip<br>Creating jdk.jlink.jmod<br>Creating java.base.jmod<br>Creating jdk image<br>Creating CDS archive for jdk image for server<br>Creating CDS-NOCOOPS archive for jdk image for server</div><div><br></div><div>When executing tests, it also depends on the CDS tasks:</div><div><br></div><div>$ make test TEST="jtreg:test/jdk/tools/jlink/JLink100Modules.java"<br>Building target 'test' in configuration 'windows-x86_64-server-release'<br>Creating CDS archive for jdk image for server<br>Creating CDS-NOCOOPS archive for jdk image for server</div><div><br></div><div>Would it be possible to adapt the dependencies that only "
jdk.jlink.jmod", "java.base.jmod", "
jdk image" are build?</div><div><br></div><div>Cheers,</div><div><br></div><div>Oliver<br></div></div>
</blockquote></div>