mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
This is a lot harder than it needs to be.
This commit is contained in:
parent
32b9e13e91
commit
f700bbc93d
|
@ -1,3 +1,5 @@
|
|||
dist: trusty
|
||||
|
||||
language: cpp
|
||||
compiler:
|
||||
- gcc
|
||||
|
@ -14,6 +16,8 @@ before_install:
|
|||
- sudo apt-get --yes update
|
||||
- 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
|
||||
|
|
|
@ -87,11 +87,8 @@ if args.lua_lib:
|
|||
if args.ci:
|
||||
ldflags.extend(library_includes(['lib']))
|
||||
include.extend(['./include'])
|
||||
if 'clang++' in args.cxx:
|
||||
cxxflags.remove('-std=c++14')
|
||||
cxxflags.append('-std=c++1y')
|
||||
if args.lua_lib:
|
||||
if args.lualib == 'luajit':
|
||||
if args.lua_lib == 'luajit':
|
||||
include.extend(['/usr/include/luajit-2.0'])
|
||||
ldflags.extend(libraries(['luajit-5.1']))
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user