Skip to content

Commit

Permalink
force use of c++-17
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Sep 2, 2024
1 parent 51023c3 commit 6da15e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ticcltools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-14]
compiler: [g++, clang++]
compiler: [g++-12, clang++]

steps:
- name: Cancel Previous Runs
Expand Down
11 changes: 2 additions & 9 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,11 @@ AC_CONFIG_SRCDIR([.])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])

if test x"${CXXFLAGS+set}" = xset; then
# the user set CXXFLAGS; don't override it.
cxx_flags_were_set=true
else
cxx_flags_were_set=false
fi
if $cxx_flags_were_set; then
CXXFLAGS=$CXXFLAGS
fi
AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX_17])

# Checks for programs.
AC_PROG_CXX( [g++] )
AX_CXX_COMPILE_STDCXX_17

# when running tests, use CXX
AC_LANG([C++])
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AM_CPPFLAGS = -I@top_srcdir@/include
AM_CXXFLAGS = -std=c++14 -g -W -Wall -pedantic -O3
AM_CXXFLAGS = -std=c++17 -g -W -Wall -pedantic -O3

bin_PROGRAMS = TICCL-indexer TICCL-indexerNT \
TICCL-LDcalc TICCL-unk TICCL-lexstat \
Expand Down

0 comments on commit 6da15e2

Please sign in to comment.