mirror of
https://github.com/LongSoft/UEFITool.git
synced 2024-11-26 01:48:23 +08:00
Try C++11 since it requests C++11 symbols
This commit is contained in:
parent
446dba9d64
commit
0edd935d28
@ -82,7 +82,7 @@ build_tool() {
|
|||||||
if [ "$UPLATFORM" = "mac" ]; then
|
if [ "$UPLATFORM" = "mac" ]; then
|
||||||
qmake $3 QMAKE_CXXFLAGS+=-flto QMAKE_LFLAGS+=-flto CONFIG+=optimize_size || exit 1
|
qmake $3 QMAKE_CXXFLAGS+=-flto QMAKE_LFLAGS+=-flto CONFIG+=optimize_size || exit 1
|
||||||
elif [ "$UPLATFORM" = "win32" ]; then
|
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
|
else
|
||||||
qmake $3 CONFIG+=optimize_size || exit 1
|
qmake $3 CONFIG+=optimize_size || exit 1
|
||||||
fi
|
fi
|
||||||
@ -90,7 +90,7 @@ build_tool() {
|
|||||||
if [ "$UPLATFORM" = "mac" ]; then
|
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
|
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
|
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
|
else
|
||||||
cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-Os" -DCMAKE_C_FLAGS="-Os" . || exit 1
|
cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-Os" -DCMAKE_C_FLAGS="-Os" . || exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user