mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 23:22:14 +03:00
Disabling musl as it isn't capable to load dynamic library (#3917)
Disabling `musl` as it isn't capable to load dynamic library. # Important Notes With this change it is possible to: ``` $ sbt bootstrap $ sbt engine-runner/buildNativeImage $ ./runner --run ./engine/runner/src/test/resources/Factorial.enso 3 6 $ ./runner --run ./engine/runner/src/test/resources/Factorial.enso 4 24 $ ./runner --run ./engine/runner/src/test/resources/Factorial.enso 100 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000 ``` Is it OK, @radeusgd to disable `musl`? If not, we would have to find a way to link the parser in statically, not dynamically.
This commit is contained in:
parent
6e1666e8b1
commit
030dbe4973
@ -1636,7 +1636,7 @@ lazy val `engine-runner` = project
|
|||||||
rebuildNativeImage := NativeImage
|
rebuildNativeImage := NativeImage
|
||||||
.buildNativeImage(
|
.buildNativeImage(
|
||||||
"runner",
|
"runner",
|
||||||
staticOnLinux = true,
|
staticOnLinux = false,
|
||||||
additionalOptions = Seq(
|
additionalOptions = Seq(
|
||||||
"-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog",
|
"-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog",
|
||||||
"-H:IncludeResources=.*Main.enso$",
|
"-H:IncludeResources=.*Main.enso$",
|
||||||
@ -1652,7 +1652,8 @@ lazy val `engine-runner` = project
|
|||||||
initializeAtRuntime = Seq(
|
initializeAtRuntime = Seq(
|
||||||
// Note [WSLoggerManager Shutdown Hook]
|
// Note [WSLoggerManager Shutdown Hook]
|
||||||
"org.enso.loggingservice.WSLoggerManager$",
|
"org.enso.loggingservice.WSLoggerManager$",
|
||||||
"io.methvin.watchservice.jna.CarbonAPI"
|
"io.methvin.watchservice.jna.CarbonAPI",
|
||||||
|
"org.enso.syntax2.Parser"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.dependsOn(installNativeImage)
|
.dependsOn(installNativeImage)
|
||||||
|
@ -13,6 +13,7 @@ public final class EnsoCompiler implements AutoCloseable {
|
|||||||
try {
|
try {
|
||||||
p = Parser.create();
|
p = Parser.create();
|
||||||
} catch (LinkageError err) {
|
} catch (LinkageError err) {
|
||||||
|
err.printStackTrace();
|
||||||
p = null;
|
p = null;
|
||||||
}
|
}
|
||||||
this.parser = p;
|
this.parser = p;
|
||||||
|
Loading…
Reference in New Issue
Block a user