From 0edd935d28d88fed5755c669f2d49a1f4a9c025d Mon Sep 17 00:00:00 2001 From: vit9696 Date: Wed, 4 Nov 2020 19:37:23 +0300 Subject: [PATCH] Try C++11 since it requests C++11 symbols --- unixbuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unixbuild.sh b/unixbuild.sh index 0742da7..a8308b7 100755 --- a/unixbuild.sh +++ b/unixbuild.sh @@ -82,7 +82,7 @@ build_tool() { if [ "$UPLATFORM" = "mac" ]; then qmake $3 QMAKE_CXXFLAGS+=-flto QMAKE_LFLAGS+=-flto CONFIG+=optimize_size || exit 1 elif [ "$UPLATFORM" = "win32" ]; then - qmake $3 QMAKE_CXXFLAGS="-static -flto -Os -std=c++03" QMAKE_LFLAGS="-static -flto -Os -std=c++03" CONFIG+=optimize_size CONFIG+=staticlib CONFIG+=static || exit 1 + qmake $3 QMAKE_CXXFLAGS="-static -flto -Os -std=c++11" QMAKE_LFLAGS="-static -flto -Os -std=c++11" CONFIG+=optimize_size CONFIG+=staticlib CONFIG+=static || exit 1 else qmake $3 CONFIG+=optimize_size || exit 1 fi @@ -90,7 +90,7 @@ build_tool() { if [ "$UPLATFORM" = "mac" ]; then cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-stdlib=libc++ -flto -Os -mmacosx-version-min=10.7" -DCMAKE_C_FLAGS="-flto -Os -mmacosx-version-min=10.7" . || exit 1 elif [ "$UPLATFORM" = "win32" ]; then - cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-static -Os -std=c++03" -DCMAKE_C_FLAGS="-static -Os" . || exit 1 + cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-static -Os -std=c++11" -DCMAKE_C_FLAGS="-static -Os" . || exit 1 else cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-Os" -DCMAKE_C_FLAGS="-Os" . || exit 1 fi