Skip to content

Commit

Permalink
Bump project to cpp17
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed Nov 24, 2023
1 parent ea60cce commit 89c372e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jni/Application.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ APP_ABI := armeabi-v7a arm64-v8a x86
APP_PLATFORM := android-16
APP_ALLOW_MISSING_DEPS=true
APP_STL := c++_static
APP_CPPFLAGS := -std=c++14
APP_CPPFLAGS := -std=c++1z
APP_OPTIM := release
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('ocgcore', 'cpp',
license : 'AGPL-3.0-or-later',
default_options : ['cpp_std=c++14'],
default_options : ['cpp_std=c++17'],
version : '9.1'
)

Expand Down
7 changes: 2 additions & 5 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ocgcore_config=function()
files { "*.h", "*.cpp" }
warnings "Extra"
optimize "Speed"
cppdialect "C++14"
cppdialect "C++17"

filter "action:not vs*"
buildoptions { "-Wno-unused-parameter", "-pedantic" }
Expand Down Expand Up @@ -34,11 +34,8 @@ if not subproject then
architecture "x64"

if _OPTIONS["oldwindows"] then
filter { "action:vs2015" }
toolset "v140_xp"
filter { "action:not vs2015" }
toolset "v141_xp"
filter {}
toolset "v141_xp"
end

filter "action:vs*"
Expand Down

0 comments on commit 89c372e

Please sign in to comment.