diff --git a/.travis.yml b/.travis.yml index 4b98cea7..b038b988 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,4 +22,4 @@ before_install: script: - ./bootstrap.py --ci --lua-lib=lua5.2 --cxx=$CXX && ninja - - ./bootstrap.py --ci --lua-lib=lua5.1 --cxx=$CXX && ninja \ No newline at end of file + - ./bootstrap.py --ci --lua-lib=luajit --cxx=$CXX && ninja \ No newline at end of file diff --git a/README.md b/README.md index 9e449605..fd9dbf58 100644 --- a/README.md +++ b/README.md @@ -57,12 +57,12 @@ For maximum ease of use, a script called `single.py` is provided. You can run th ## Supported Compilers -Sol makes use of C++11/14 features. GCC 4.7 and Clang 3.3 or higher should be able to compile without problems. However, the -officially supported compilers are: +Sol makes use of C++11/14 features. GCC 4.9 and Clang 3.4 or higher should be able to compile without problems. However, the +officially supported and CI-tested compilers are: -- GCC 4.8.0+ -- Clang 3.4+ -- Visual Studio 2015 Community (Visual C++ 14.0) and above +- GCC 4.9.0+ +- Clang 3.5+ +- Visual Studio 2015 Community (Visual C++ 14.0) and above (tested manually) ## Caveats diff --git a/bootstrap.py b/bootstrap.py index e32eb2ce..b8530b74 100755 --- a/bootstrap.py +++ b/bootstrap.py @@ -41,8 +41,8 @@ parser.add_argument('--debug', action='store_true', help='compile with debug fla parser.add_argument('--cxx', metavar='', help='compiler name to use (default: env.CXX=%s)' % cxx, default=cxx) parser.add_argument('--ci', action='store_true', help=argparse.SUPPRESS) parser.add_argument('--testing', action='store_true', help=argparse.SUPPRESS) -parser.add_argument('--lua-lib', help='lua library name (without the lib on *nix)', default='lua') -parser.add_argument('--lua-dir', metavar='', help='directory lua is in with include and lib subdirectories') +parser.add_argument('--lua-lib', help='lua library name (without the lib on *nix).', default='lua') +parser.add_argument('--lua-dir', metavar='', help='directory lua is in with include and lib subdirectories', default='./lua-5.3.2') parser.add_argument('--install-dir', metavar='', help='directory to install the headers to', default=install_dir); parser.epilog = """In order to install sol, administrative privileges might be required. Note that installation is done through the 'ninja install' command. To uninstall, the @@ -52,7 +52,7 @@ system is {}""".format(install_dir) args = parser.parse_args() # general variables -include = [ '.', os.path.join('Catch', 'include')] +include = [ '.', './include', os.path.join('Catch', 'include')] depends = [] cxxflags = [ '-Wall', '-Wextra', '-pedantic', '-pedantic-errors', '-std=c++14' ] ldflags = [] @@ -88,9 +88,13 @@ if args.ci: ldflags.extend(library_includes(['lib'])) include.extend(['./include']) if args.lua_lib: - include.extend(['/usr/include/' + args.lua_lib]) + if args.lualib == 'luajit': + include.extend(['/usr/include/luajit-2.0']) + ldflags.extend(libraries(['luajit-5.1'])) + else: + 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']) + include.extend(['/usr/include/lua-5.3', '/usr/include/lua-5.2', '/usr/include/lua-5.1', '/usr/include/luajit-2.0']) if args.testing: cxxflags.append('-Wmissing-declarations')