mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Ignore some warnings on clang.
This commit is contained in:
parent
2ac3e27229
commit
6774249bb5
|
@ -12,6 +12,7 @@ before_install:
|
||||||
- sudo add-apt-repository -y ppa:saiarcot895/chromium-beta
|
- sudo add-apt-repository -y ppa:saiarcot895/chromium-beta
|
||||||
- sudo apt-get --yes update
|
- sudo apt-get --yes update
|
||||||
- sudo apt-get --yes install g++-4.8
|
- sudo apt-get --yes install g++-4.8
|
||||||
|
- if [ "$CXX" == "g++" ]; then export CXX=g++-4.8; fi
|
||||||
- sudo apt-get --yes install ninja-build
|
- sudo apt-get --yes install ninja-build
|
||||||
- sudo apt-get --yes install liblua5.2-dev
|
- sudo apt-get --yes install liblua5.2-dev
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,9 @@ if args.debug:
|
||||||
else:
|
else:
|
||||||
cxxflags.extend(['-DNDEBUG', '-O3'])
|
cxxflags.extend(['-DNDEBUG', '-O3'])
|
||||||
|
|
||||||
|
if args.cxx == 'clang++':
|
||||||
|
cxxflags.extend(['-Wno-unused-value', '-Wno-constexpr-not-const'])
|
||||||
|
|
||||||
if args.lua_dir:
|
if args.lua_dir:
|
||||||
include.extend([os.path.join(args.lua_dir, 'include')])
|
include.extend([os.path.join(args.lua_dir, 'include')])
|
||||||
ldflags.extend(library_includes([os.path.join(args.lua_dir, 'lib')]))
|
ldflags.extend(library_includes([os.path.join(args.lua_dir, 'lib')]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user