Allow C preprocessor to work with C++17-specific includes

This commit is contained in:
Mikhail Novosyolov 2020-04-01 23:18:08 +03:00
parent 093e860751
commit 7c24887628

View file

@ -2964,6 +2964,7 @@ export CCACHE_DIR=%{ccachedir}
# -> "argument unused during compilation: '-stdlib=libc++'" -> # -> "argument unused during compilation: '-stdlib=libc++'" ->
# -> -Wno-unused-command-line-argument # -> -Wno-unused-command-line-argument
export CXXFLAGS="$CXXFLAGS -stdlib=libc++ -nostdinc++ -I/usr/include/c++/v1 -Wno-unused-command-line-argument" export CXXFLAGS="$CXXFLAGS -stdlib=libc++ -nostdinc++ -I/usr/include/c++/v1 -Wno-unused-command-line-argument"
export CPPFLAGS="$CPPFLAGS -I/usr/include/c++/v1"
# Workaround old system boost being incompatible with C++17 which removed std::auto_ptr # Workaround old system boost being incompatible with C++17 which removed std::auto_ptr
# https://github.com/TRIQS/triqs/issues/523#issuecomment-351960463 # https://github.com/TRIQS/triqs/issues/523#issuecomment-351960463
export CXXFLAGS="$CXXFLAGS -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR" export CXXFLAGS="$CXXFLAGS -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"