Skip to content

Commit 18fdb82

Browse files
committed
libdivsufsort
1 parent f147801 commit 18fdb82

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

‎doc/binaries.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ curl -L https://github.com/tjunier/newick_utils/archive/da121155a977197cab9fbb15
324324
bash scripts/newick-utils.sh # bison, flex
325325

326326
cbp build source libdivsufsort
327+
bash scripts/libdivsufsort.sh
327328

328329
```
329330

‎scripts/libdivsufsort.sh‎

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,28 @@ source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
66
# Extract source code
77
extract_source
88

9-
cmake -LH .
9+
# cmake -LH .
1010

11-
# # Configure CMake with Zig compiler
12-
# ASM="zig cc" \
13-
# CC="zig cc" \
14-
# CXX="zig c++" \
15-
# CFLAGS="-I$HOME/.cbp/include" \
16-
# LDFLAGS="-L$HOME/.cbp/lib" \
17-
# cmake \
18-
# -DCMAKE_ASM_COMPILER_TARGET="${TARGET_ARCH}" \
19-
# -DCMAKE_C_COMPILER_TARGET="${TARGET_ARCH}" \
20-
# -DCMAKE_CXX_COMPILER_TARGET="${TARGET_ARCH}" \
21-
# -DZLIB_INCLUDE_DIR="$HOME/.cbp/include" \
22-
# -DZLIB_LIBRARY="$HOME/.cbp/lib/libz.a" \
23-
# -DINSTALL_GTEST=OFF \
24-
# -Dspoa_build_executable=ON \
25-
# -Dspoa_build_tests=OFF \
26-
# -Dspoa_use_simde=ON \
27-
# -Dspoa_use_simde_openmp=ON \
28-
# -S . -B build
11+
# Configure CMake with Zig compiler
12+
ASM="zig cc" \
13+
CC="zig cc" \
14+
CXX="zig c++" \
15+
CFLAGS="-I$HOME/.cbp/include" \
16+
LDFLAGS="-L$HOME/.cbp/lib" \
17+
cmake \
18+
-DCMAKE_ASM_COMPILER_TARGET="${TARGET_ARCH}" \
19+
-DCMAKE_C_COMPILER_TARGET="${TARGET_ARCH}" \
20+
-DCMAKE_CXX_COMPILER_TARGET="${TARGET_ARCH}" \
21+
-DCMAKE_INSTALL_PREFIX="${TEMP_DIR}/collect" \
22+
-DBUILD_EXAMPLES=ON \
23+
-DBUILD_DIVSUFSORT64=ON \
24+
-DBUILD_SHARED_LIBS=OFF \
25+
-S . -B build
2926

30-
# # Build the project
31-
# cmake --build build -- -j 8 || exit 1
27+
# Build the project
28+
cmake --build build -- -j 8 || exit 1
29+
30+
eza -T "${TEMP_DIR}/collect"
3231

3332
# # Collect binaries and create tarball
3433
# FN_TAR="${PROJ}.${OS_TYPE}.tar.gz"

0 commit comments

Comments
 (0)