Watch
1
0
Fork
You've already forked pgpainless
0
mirror of https://github.com/pgpainless/pgpainless.git synced 2026-10-21 01:27:17 +02:00
Run tracing‐agent to collect native image configurations
Paul Schaub edited this page 2026-08-04 14:51:56 +02:00

Install prerequisites:

sudo dnf install gcc glibc-devel zlib-devel libstdc++-static

Fixup LD_LIBRARY_PATH:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/graalvm/lib

Run the tests with tracing agent enabled, copy the generated metadata over and compile the native image

gradle -Pagent test && gradle metadataCopy --task test --dir src/main/resources/META-INF/native-image && gradle nativeCompile

Build native image:

gradle clean build nativeCompile

Output: pgpainless-cli/build/native/nativeCompile/pgpainless-cli