Try manually adding CXX flag

pull/66/head
beiller 1 year ago
parent 3c04dfb436
commit 3e2327c96a
No known key found for this signature in database
GPG Key ID: 5AC5D1B01D0E5D75

@ -12,7 +12,8 @@ fi
if [ ! -f libsentencepiece.a ]
then
tar xzvf v0.1.97.tar.gz
cd sentencepiece-0.1.97/ && rm -rf build && mkdir build && cd build && cmake ..
cd sentencepiece-0.1.97/ && rm -rf build && mkdir build && cd build
cmake -E env CXXFLAGS="-std=c++17" cmake ..
make sentencepiece-static -j $(nproc)
cd ../..
cp sentencepiece-0.1.97/build/src/libsentencepiece.a ./

Loading…
Cancel
Save