File tree 4 files changed +8
-2
lines changed
src/main/resources/org/xerial/snappy/native/Mac/aarch64
4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 30
30
runs-on : ubuntu-latest
31
31
steps :
32
32
- uses : actions/checkout@v4
33
+ - name : Setup cmake
34
+
35
+ with :
36
+ cmake-version : ' 3.16.x'
33
37
- name : Build native libraries
34
38
run : make clean-native native-all
35
39
env :
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ SNAPPY_CC:=snappy-sinksource.cc snappy-stubs-internal.cc snappy-c.cc snappy.cc
14
14
SNAPPY_SRC_DIR: =$(TARGET ) /snappy-$(SNAPPY_VERSION )
15
15
SNAPPY_SRC: =$(addprefix $(SNAPPY_SRC_DIR ) /,$(SNAPPY_CC ) )
16
16
SNAPPY_GIT_REPO_URL: =https://github.com/google/snappy
17
- SNAPPY_GIT_REV: =537f4ad6240e586970fe554614542e9717df7902 # 1.1.8
17
+ # Change this variable to use a specific git commit
18
+ SNAPPY_GIT_REV: =$(SNAPPY_VERSION )
18
19
SNAPPY_UNPACKED: =$(TARGET ) /snappy-extracted.log
19
20
SNAPPY_GIT_UNPACKED: =$(TARGET ) /snappy-git-extracted.log
20
21
SNAPPY_CMAKE_CACHE =$(SNAPPY_OUT ) /CMakeCache.txt
@@ -79,6 +80,7 @@ $(SNAPPY_GIT_UNPACKED):
79
80
@mkdir -p $(SNAPPY_SRC_DIR )
80
81
git clone $(SNAPPY_GIT_REPO_URL ) $(SNAPPY_SRC_DIR )
81
82
git --git-dir=$(SNAPPY_SRC_DIR ) /.git --work-tree=$(SNAPPY_SRC_DIR ) checkout -b local/snappy-$(SNAPPY_VERSION ) $(SNAPPY_GIT_REV )
83
+ cd $(SNAPPY_SRC_DIR ) && git submodule update --init
82
84
touch $@
83
85
84
86
$(SNAPPY_CMAKE_CACHE ) : $(SNAPPY_GIT_UNPACKED )
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ Mac-x86_SNAPPY_FLAGS :=
258
258
259
259
Mac-x86_64_CXX := c++ -arch $(OS_ARCH)
260
260
Mac-x86_64_STRIP := strip -x
261
- Mac-x86_64_CXXFLAGS := -Ilib/inc_mac -I$(JAVA_HOME)/include -O2 -fPIC -mmacosx-version-min=10.7 -fvisibility=hidden -stdlib=libc++ -std=c++11
261
+ Mac-x86_64_CXXFLAGS := -Ilib/inc_mac -I$(JAVA_HOME)/include -O2 -fPIC -mmacosx-version-min=10.7 -fvisibility=hidden -stdlib=libc++ -std=c++11 -ftemplate-depth=1024
262
262
Mac-x86_64_LINKFLAGS := -dynamiclib
263
263
Mac-x86_64_LIBNAME := libsnappyjava.dylib
264
264
Mac-x86_64_SNAPPY_FLAGS :=
You can’t perform that action at this time.
0 commit comments