We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a2032d commit 6126e60Copy full SHA for 6126e60
libxtracfg/java/build.gradle
@@ -57,7 +57,9 @@ graalvmNative {
57
imageName = "libxtracfgjni"
58
sharedLibrary = true
59
buildArgs("--native-compiler-path=${project.projectDir}/../c/native-image/static-compiler-${targetos}.${targetos == 'windows' ? 'bat' : 'sh'}")
60
- buildArgs('--native-compiler-options=-fPIC')
+ if (targetos != 'windows') {
61
+ buildArgs('--native-compiler-options=-fPIC')
62
+ }
63
//buildArgs('-march=native')
64
buildArgs('-O2') //TODO -O3 image is 50% larger than -O2, test -Os with JDK 23
65
//buildArgs('--pgo') see https://www.graalvm.org/latest/reference-manual/native-image/optimizations-and-performance/PGO/
0 commit comments