Skip to content

Commit

Permalink
sqlite working correctly in native image build (now h2 breaks)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Mar 26, 2024
1 parent 1d5c016 commit e888f9d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions native-build/BuildNativeImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ public static void main(String[] a) throws Exception {
throw new IllegalStateException("Couldn't find native image executable");

// run native-image
runCommand(nativeImage.get().toString() +
" --allow-incomplete-classpath " +
runCommand(nativeImage.get().toString() + " " +
"-H:+UnlockExperimentalVMOptions " +
"-H:EnableURLProtocols=http " +
"-H:EnableURLProtocols=https " +
"-H:IncludeResources='./webroot/.*' " +
"-H:+ReportUnsupportedElementsAtRuntime " +
"-H:ConfigurationFileDirectories=META-INF/native-image " +
"--initialize-at-build-time=org.sqlite.util.ProcessRunner " +
"--no-fallback " +
"--initialize-at-build-time=org.sqlite.DB,org.sqlite.NativeDB,org.sqlite.Function,org.sqlite.Function\\$Aggregate,org.sqlite.DB\\$ProgressObserver " +
"-jar Peergos.jar peergos");
if (! new File("peergos"+ext).exists())
throw new IllegalStateException("Native build failed!");
Expand Down

0 comments on commit e888f9d

Please sign in to comment.