JPS: Don't set up JNA for Windows if the build process runs in WSL

GitOrigin-RevId: b5ccda50d67f3b43395ccacc47a912760f199bcc
This commit is contained in:
Vladimir Lagunov
2024-08-29 09:12:42 +00:00
committed by intellij-monorepo-bot
parent ac33476722
commit d0bab98c22
@@ -1411,7 +1411,7 @@ public final class BuildManager implements Disposable {
cmdLine.addParameter("-Djava.awt.headless=true");
String jnaBootLibraryPath = System.getProperty("jna.boot.library.path");
if (jnaBootLibraryPath != null) {
if (jnaBootLibraryPath != null && wslPath == null) {
//noinspection SpellCheckingInspection
cmdLine.addParameter("-Djna.boot.library.path=" + jnaBootLibraryPath);
//noinspection SpellCheckingInspection