Skip to content

Commit 38c58a2

Browse files
committed
Silence build output of fallback builds.
1 parent 8dcfd50 commit 38c58a2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public Boolean getValue(OptionValues values) {
408408
/*
409409
* Build output options.
410410
*/
411-
@APIOption(name = "--silent")//
411+
@APIOption(name = "silent")//
412412
@Option(help = "Silence build output", type = OptionType.User)//
413413
public static final HostedOptionKey<Boolean> BuildOutputSilent = new HostedOptionKey<>(false);
414414

substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ private ArrayList<String> createFallbackBuildArgs() {
630630
buildArgs.add(fallbackExecutorJavaArg);
631631
}
632632

633+
buildArgs.add(oH + "+" + SubstrateOptions.BuildOutputSilent.getName());
633634
buildArgs.add(oH + "+" + SubstrateOptions.ParseRuntimeOptions.getName());
634635
Path imagePathPath;
635636
try {
@@ -1407,6 +1408,7 @@ protected static void build(BuildConfiguration config, Function<BuildConfigurati
14071408
int buildStatus = nativeImage.completeImageBuild();
14081409
if (buildStatus == 2) {
14091410
/* Perform fallback build */
1411+
nativeImage.showMessage("Generating fallback image...");
14101412
build(new FallbackBuildConfiguration(nativeImage), nativeImageProvider);
14111413
showWarning("Image '" + nativeImage.imageName +
14121414
"' is a fallback image that requires a JDK for execution " +

0 commit comments

Comments
 (0)