|
25 | 25 | package com.oracle.svm.core.posix.darwin; |
26 | 26 |
|
27 | 27 | import com.oracle.svm.core.jdk.SystemPropertiesSupport; |
| 28 | +import com.oracle.svm.hosted.NativeImageOptions; |
28 | 29 | import org.graalvm.nativeimage.ImageSingletons; |
29 | 30 | import org.graalvm.nativeimage.Platform; |
30 | 31 | import org.graalvm.nativeimage.c.function.CLibrary; |
|
48 | 49 | import com.oracle.svm.core.traits.BuiltinTraits.NoLayeredCallbacks; |
49 | 50 | import com.oracle.svm.core.traits.SingletonLayeredInstallationKind.Disallowed; |
50 | 51 | import com.oracle.svm.core.traits.SingletonTraits; |
51 | | - |
52 | | -import jdk.graal.compiler.word.Word; |
| 52 | +import org.graalvm.word.impl.Word; |
53 | 53 |
|
54 | 54 | @SingletonTraits(access = AllAccess.class, layeredCallbacks = NoLayeredCallbacks.class, layeredInstallationKind = Disallowed.class) |
55 | 55 | @CLibrary(value = "darwin", requireStatic = true) |
56 | 56 | public class DarwinSystemPropertiesSupport extends PosixSystemPropertiesSupport { |
57 | 57 |
|
| 58 | + public DarwinSystemPropertiesSupport(boolean compatibilityMode) { |
| 59 | + super(compatibilityMode); |
| 60 | + } |
| 61 | + |
58 | 62 | @Override |
59 | 63 | protected String javaIoTmpdirValue() { |
60 | 64 | /* Darwin has a per-user temp dir */ |
@@ -144,7 +148,7 @@ protected String jvmLibSuffix() { |
144 | 148 | class DarwinSystemPropertiesFeature implements InternalFeature { |
145 | 149 | @Override |
146 | 150 | public void duringSetup(DuringSetupAccess access) { |
147 | | - ImageSingletons.add(RuntimeSystemPropertiesSupport.class, new DarwinSystemPropertiesSupport()); |
| 151 | + ImageSingletons.add(RuntimeSystemPropertiesSupport.class, new DarwinSystemPropertiesSupport(NativeImageOptions.compatibilityMode())); |
148 | 152 | ImageSingletons.add(SystemPropertiesSupport.class, (SystemPropertiesSupport) ImageSingletons.lookup(RuntimeSystemPropertiesSupport.class)); |
149 | 153 | } |
150 | 154 | } |
0 commit comments