Skip to content

Commit 0ab2284

Browse files
committed
Fix unable to run on some OSes such as OpenBSD
1 parent bd80fb4 commit 0ab2284

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/main/java/org/cyclops/integratedscripting/core/packageddependencies/PackagedDependenciesLoader.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
*/
2828
public class PackagedDependenciesLoader {
2929
public static void load() throws IOException {
30+
// Forcefully make Graal run on unsupported OSes (such as OpenBSD). It will fall back to a slower version.
31+
System.setProperty("polyglot.engine.allowUnsupportedPlatform", "true");
32+
System.setProperty("polyglot.engine.userResourceCache", System.getProperty("java.io.tmpdir"));
33+
34+
// Load libraries
3035
JsonObject jo;
3136
Path tmp = FMLLoader.getGamePath().resolve("libraries-integratedscripting");
3237
Files.createDirectories(tmp);

0 commit comments

Comments
 (0)