3
0
Fork 0
forked from mirrors/nixpkgs

buildGraalvmNativeImage: fix meta, add --verbose flag

This commit is contained in:
Thiago Kenji Okada 2021-11-23 13:32:17 -03:00
parent e9766a85bd
commit f1c16183c8
5 changed files with 3 additions and 8 deletions

View file

@ -26,6 +26,7 @@ stdenv.mkDerivation (args // {
"-H:CLibraryPath=${lib.getLib graalvm}/lib" "-H:CLibraryPath=${lib.getLib graalvm}/lib"
"${lib.optionalString stdenv.isDarwin "-H:-CheckToolchain"}" "${lib.optionalString stdenv.isDarwin "-H:-CheckToolchain"}"
"-H:Name=${executable}" "-H:Name=${executable}"
"--verbose"
extraNativeImageBuildArgs extraNativeImageBuildArgs
graalvmXmx graalvmXmx
]); ]);
@ -46,8 +47,6 @@ stdenv.mkDerivation (args // {
runHook postInstall runHook postInstall
''; '';
meta = { meta.platforms = lib.attrByPath [ "meta" "platforms" ] graalvm.meta.platforms args;
platforms = lib.attrByPath [ "meta" "platforms" ] graalvm.meta.platforms args; meta.mainProgram = lib.attrByPath [ "meta" "mainProgram" ] executable args;
mainProgram = lib.attrByPath [ "meta" "mainProgram" ] executable args;
};
}) })

View file

@ -13,7 +13,6 @@ buildGraalvmNativeImage rec {
extraNativeImageBuildArgs = [ extraNativeImageBuildArgs = [
"-H:+ReportExceptionStackTraces" "-H:+ReportExceptionStackTraces"
"--verbose"
"--no-fallback" "--no-fallback"
"--native-image-info" "--native-image-info"
]; ];

View file

@ -11,7 +11,6 @@ buildGraalvmNativeImage rec {
extraNativeImageBuildArgs = [ extraNativeImageBuildArgs = [
"-H:+ReportExceptionStackTraces" "-H:+ReportExceptionStackTraces"
"--verbose"
"--no-fallback" "--no-fallback"
]; ];

View file

@ -22,7 +22,6 @@ buildGraalvmNativeImage rec {
"-H:ReflectionConfigurationFiles=${reflectionJson}" "-H:ReflectionConfigurationFiles=${reflectionJson}"
"--initialize-at-build-time" "--initialize-at-build-time"
"-H:Log=registerResource:" "-H:Log=registerResource:"
"--verbose"
"--no-fallback" "--no-fallback"
"--no-server" "--no-server"
]; ];

View file

@ -21,7 +21,6 @@ buildGraalvmNativeImage rec {
extraNativeImageBuildArgs = [ extraNativeImageBuildArgs = [
"-H:CLibraryPath=${DTLV_LIB_EXTRACT_DIR}" "-H:CLibraryPath=${DTLV_LIB_EXTRACT_DIR}"
"--verbose"
"--no-fallback" "--no-fallback"
"--native-image-info" "--native-image-info"
]; ];