File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2424 */
2525package com .oracle .svm .hosted .jdk ;
2626
27- import com .oracle .svm .core .feature .InternalFeature ;
27+ import org .graalvm .nativeimage .Platform ;
28+
2829import com .oracle .svm .core .feature .AutomaticallyRegisteredFeature ;
30+ import com .oracle .svm .core .feature .InternalFeature ;
2931import com .oracle .svm .hosted .FeatureImpl ;
3032
3133@ AutomaticallyRegisteredFeature
@@ -36,7 +38,9 @@ public void beforeAnalysis(BeforeAnalysisAccess access) {
3638 access .registerReachabilityHandler (duringAnalysisAccess -> {
3739 FeatureImpl .BeforeAnalysisAccessImpl beforeAnalysisAccess = (FeatureImpl .BeforeAnalysisAccessImpl ) access ;
3840 beforeAnalysisAccess .getNativeLibraries ().addStaticJniLibrary ("jimage" );
39- beforeAnalysisAccess .getNativeLibraries ().addDynamicNonJniLibrary ("stdc++" );
41+ if (!Platform .includedIn (Platform .WINDOWS .class )) {
42+ beforeAnalysisAccess .getNativeLibraries ().addDynamicNonJniLibrary ("stdc++" );
43+ }
4044 }, access .findClassByName ("jdk.internal.jimage.NativeImageBuffer" ));
4145 }
4246}
You can’t perform that action at this time.
0 commit comments