2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Fix compiler warnings about -std=gnu11 on Cygwin. (#458)

-std=gnu11 is a flag for C source files, for C++ -std=gnu++11 should be used.
This commit is contained in:
Andrey Semashev
2019-07-11 14:34:28 +03:00
committed by Rene Rivera
parent 35c86a1bed
commit 2b9645cd7e

View File

@@ -177,7 +177,7 @@ case $B2_TOOLSET in
;;
*cygwin*)
B2_CXX="${CXX} -x c++ -std=gnu11"
B2_CXX="${CXX} -x c++ -std=gnu++11"
B2_CXXFLAGS_RELEASE="-O2 -s"
B2_CXXFLAGS_DEBUG="-O0 -g"
;;