From ee36313770f1a9ca04618d1e7677d5c428326442 Mon Sep 17 00:00:00 2001 From: beiller Date: Wed, 8 Mar 2023 16:44:50 -0500 Subject: [PATCH] Ah -std=c++17 is needed --- .github/workflows/build.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2eccb30..7c10638 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: - name: Dependencies run: | sudo apt-get update - sudo apt-get install build-essential cmake + sudo apt-get install build-essential - name: Build run: | diff --git a/Makefile b/Makefile index 57a14bc..05a2039 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ endif # CFLAGS = -I. -O3 -DNDEBUG -std=c11 -fPIC -CXXFLAGS = -I. -Ideps/sentencepiece-0.1.97/src/ -O3 -DNDEBUG -std=c++11 -fPIC +CXXFLAGS = -I. -Ideps/sentencepiece-0.1.97/src/ -O3 -DNDEBUG -std=c++17 -fPIC LDFLAGS = # OS specific # TODO: support Windows