The declaration sites for JVM flags were changed by JDK-8243205 and the subsequent JDK-8258074. As a result, undeclared identifier errors occurred while building VM without compiler1 or compiler2 feature.
Making the corresponding header files included would fix it. Note that we have tested locally with this patch, build without C1/C2 succeeded on Linux X86/AArch64 machines. ------------- Commit messages: - 8258856: VM build without C1/C2 fails after JDK-8243205 Changes: https://git.openjdk.java.net/jdk/pull/1876/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1876&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8258856 Stats: 4 lines in 3 files changed: 4 ins; 0 del; 0 mod Patch: https://git.openjdk.java.net/jdk/pull/1876.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/1876/head:pull/1876 PR: https://git.openjdk.java.net/jdk/pull/1876