Skip to content

Commit 3e2327c

Browse files
committed
Try manually adding CXX flag
1 parent 3c04dfb commit 3e2327c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ fi
1212
if [ ! -f libsentencepiece.a ]
1313
then
1414
tar xzvf v0.1.97.tar.gz
15-
cd sentencepiece-0.1.97/ && rm -rf build && mkdir build && cd build && cmake ..
15+
cd sentencepiece-0.1.97/ && rm -rf build && mkdir build && cd build
16+
cmake -E env CXXFLAGS="-std=c++17" cmake ..
1617
make sentencepiece-static -j $(nproc)
1718
cd ../..
1819
cp sentencepiece-0.1.97/build/src/libsentencepiece.a ./

0 commit comments

Comments
 (0)