Skip to content

Commit

Permalink
Fix Mac build (uses "default") and tabs vs. spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa authored and zakkak committed Jan 9, 2024
1 parent 03499b4 commit 191abaa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ public static void main(String... args) throws IOException
else
{
Path libdarwinSource = null;
Path libchelperSource = Path.of("substratevm", "mxbuild", PLATFORM, "com.oracle.svm.native.libchelper", PLATFORM, "glibc", "liblibchelper.a");
Path libjvmSource = Path.of("substratevm", "mxbuild", platformAndJDK, "com.oracle.svm.native.jvm.posix", PLATFORM, "glibc", "libjvm.a");
if (IS_MAC)
{
libdarwinSource = Path.of("substratevm", "mxbuild", PLATFORM, "com.oracle.svm.native.darwin", ARCH, "libdarwin.a");
}
Path reporterchelperSource = Path.of("substratevm", "mxbuild", platformAndJDK, "com.oracle.svm.native.reporterchelper", PLATFORM, "glibc", System.mapLibraryName("reporterchelper"));
Path libchelperSource = Path.of("substratevm", "mxbuild", PLATFORM, "com.oracle.svm.native.libchelper", PLATFORM, (IS_MAC ? "default" : "glibc"), "liblibchelper.a");
Path libjvmSource = Path.of("substratevm", "mxbuild", platformAndJDK, "com.oracle.svm.native.jvm.posix", PLATFORM, (IS_MAC ? "default" : "glibc"), "libjvm.a");
if (IS_MAC)
{
libdarwinSource = Path.of("substratevm", "mxbuild", PLATFORM, "com.oracle.svm.native.darwin", PLATFORM, "default", "libdarwin.a");
}
Path reporterchelperSource = Path.of("substratevm", "mxbuild", platformAndJDK, "com.oracle.svm.native.reporterchelper", PLATFORM, (IS_MAC ? "default" : "glibc"), System.mapLibraryName("reporterchelper"));
FileSystem.copy(mandrelRepo.resolve(libchelperSource),
mandrelJavaHome.resolve(Path.of("lib", "svm", "clibraries", PLATFORM, "liblibchelper.a")));
FileSystem.copy(mandrelRepo.resolve(libjvmSource),
Expand Down

0 comments on commit 191abaa

Please sign in to comment.