提交 ae7b0481 编写于 作者: V Vlad Ilyushchenko

ARM64 Linux support and binary

上级 3c72f787
......@@ -33,7 +33,12 @@ if (APPLE)
)
elseif (UNIX)
include_directories($ENV{JAVA_HOME}/include/linux/)
set(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/src/main/resources/binaries/linux)
message(${CMAKE_SYSTEM_PROCESSOR})
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64")
set(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/src/main/resources/binaries/armlinux)
else ()
set(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/src/main/resources/binaries/linux)
endif ()
set(
SOURCE_FILES ${SOURCE_FILES}
src/main/c/share/net.c
......
......@@ -134,7 +134,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19</version>
<configuration>
<argLine>-Xmx2048m</argLine>
<argLine>-Xmx512m</argLine>
<systemPropertyVariables>
<java.util.logging.SimpleFormatter.format>
<![CDATA[%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS %4$s %2$s %5$s%6$s%n]]>
......
......@@ -173,7 +173,11 @@ public final class Os {
String osName = System.getProperty("os.name");
if (osName.contains("Linux")) {
type = LINUX;
loadLib("/binaries/linux/libquestdb.so");
if("aarch64".equals(System.getProperty("os.arch"))) {
loadLib("/binaries/armlinux/libquestdb.so");
} else {
loadLib("/binaries/linux/libquestdb.so");
}
} else if (osName.contains("Mac")) {
type = OSX;
loadLib("/binaries/osx/libquestdb.dylib");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册