fix build on arm64

This commit is contained in:
Shawn Landden
2019-03-27 01:10:45 +00:00
parent 85575704a4
commit 65e234adfd
5 changed files with 41 additions and 13 deletions

View File

@@ -2076,3 +2076,21 @@ void os_file_close(OsFile file) {
close(file);
#endif
}
#ifdef ZIG_OS_LINUX
const char *possible_ld_names[] = {
#if defined(ZIG_ARCH_X86_64)
"ld-linux-x86-64.so.2",
"ld-musl-x86_64.so.1",
#elif defined(ZIG_ARCH_ARM64)
"ld-linux-aarch64.so.1",
"ld-musl-aarch64.so.1",
#elif defined(ZIG_ARCH_ARM)
"ld-linux-armhf.so.3",
"ld-musl-armhf.so.1",
"ld-linux.so.3",
"ld-musl-arm.so.1",
#endif
NULL,
};
#endif