fpp/compiler/install-trace
2025-11-10 17:49:27 -08:00

21 lines
645 B
Bash
Executable File

#!/bin/sh -e
# ----------------------------------------------------------------------
# Install FPP tools configured to run the GraalVM tracing agent
# See https://www.graalvm.org/22.1/reference-manual/native-image/Agent/
# ----------------------------------------------------------------------
if test -z "$FPP_GRAALVM_JAVA_HOME"
then
echo "trace: environment variable FPP_GRAALVM_JAVA_HOME is not set" 1>&2
exit 1
fi
dir="`pwd`"
merge_dir="$dir/lib/src/main/resources/META-INF/native-image"
export FPP_JAVA_HOME=$FPP_GRAALVM_JAVA_HOME
export FPP_JAVA_FLAGS="-agentlib:native-image-agent=config-merge-dir=$merge_dir"
$dir/install "$@"