mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
clang and g++ versions we want to target
This commit is contained in:
parent
f9da62a6e3
commit
3f6de17856
|
@ -12,8 +12,10 @@ before_install:
|
|||
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
|
||||
- sudo add-apt-repository -y ppa:saiarcot895/chromium-beta
|
||||
- sudo apt-get --yes update
|
||||
- if [ "$CXX" == "g++" ]; then sudo apt-get --yes install g++-4.8; fi
|
||||
- if [ "$CXX" == "g++" ]; then export CXX=g++-4.8; fi
|
||||
- if [ "$CXX" == "g++" ]; then sudo apt-get --yes install g++-4.9; fi
|
||||
- if [ "$CXX" == "g++" ]; then export CXX=g++-4.9; fi
|
||||
- if [ "$CXX" == "clang++" ]; then sudo apt-get --yes install clang++-3.5; fi
|
||||
- if [ "$CXX" == "clang++" ]; then export CXX=clang++-3.5; fi
|
||||
- sudo apt-get --yes install ninja-build
|
||||
- sudo apt-get --yes install liblua5.2-dev
|
||||
- sudo apt-get --yes install libluajit-5.1-dev
|
||||
|
|
|
@ -54,7 +54,7 @@ args = parser.parse_args()
|
|||
# general variables
|
||||
include = [ '.', os.path.join('Catch', 'include')]
|
||||
depends = []
|
||||
cxxflags = [ '-Wall', '-Wextra', '-pedantic', '-pedantic-errors' ]
|
||||
cxxflags = [ '-Wall', '-Wextra', '-pedantic', '-pedantic-errors', '-std=c++14' ]
|
||||
ldflags = []
|
||||
script_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
|
||||
sol_dir = os.path.join(script_dir, 'sol')
|
||||
|
@ -91,9 +91,6 @@ if args.ci:
|
|||
include.extend(['/usr/include/' + args.lua_lib])
|
||||
else:
|
||||
include.extend(['/usr/include/lua-5.3', '/usr/include/lua-5.2', '/usr/include/lua-5.1'])
|
||||
cxxflags.extend(['-std=c++1y'])
|
||||
else:
|
||||
cxxflags.extend(['-std=c++14'])
|
||||
|
||||
if args.testing:
|
||||
cxxflags.append('-Wmissing-declarations')
|
||||
|
|
Loading…
Reference in New Issue
Block a user