Changing the enso_parser library location to match Intel Mac (#3850)

This commit is contained in:
Jaroslav Tulach 2022-11-03 12:50:28 +01:00 committed by GitHub
parent 73666df8fa
commit db13084828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,8 +135,14 @@ object DistributionPackage {
cacheFactory.make("engine-jars")
)
val os = System.getProperty("os.name")
val parser = "target/rust/debug/" + (if (os.startsWith("Mac")) {
"x86_64-apple-darwin/libenso_parser.dylib"
val isMac = os.startsWith("Mac")
val dir = if (isMac) {
"target/rust/x86_64-apple-darwin/debug/"
} else {
"target/rust/debug/"
}
val parser = dir + (if (isMac) {
"libenso_parser.dylib"
} else if (os.startsWith("Windows")) {
"enso_parser.dll"
} else {