gcc compile fix

This commit is contained in:
Jack Andersen 2015-05-19 19:45:19 -10:00
parent 93a602be9a
commit 880c9f6c95
3 changed files with 10 additions and 4 deletions

View File

@ -11,7 +11,7 @@ public:
CToolHelp(const SToolPassInfo& info)
: CToolBase(info)
{
if (!m_info.args.size())
if (m_info.args.empty())
throw std::invalid_argument("help requires a tool name argument");
}

View File

@ -2,8 +2,10 @@ TARGET = hecl
CONFIG -= Qt
QT =
LIBS -= -lQtGui -lQtCore
unix:QMAKE_CXXFLAGS += -std=c++11 -stdlib=libc++
unix:!macx:LIBS += -std=c++11 -stdlib=libc++ -lc++abi
unix:QMAKE_CXXFLAGS += -std=c++11
unix:LIBS += -std=c++11
clang:QMAKE_CXXFLAGS += -stdlib=libc++
clang:LIBS += -stdlib=libc++ -lc++abi
INCLUDEPATH += ../include

View File

@ -3,7 +3,11 @@ CONFIG += staticlib
TARGET = hecl
CONFIG -= Qt
QT =
unix:QMAKE_CXXFLAGS += -std=c++11 -stdlib=libc++
unix:QMAKE_CXXFLAGS += -std=c++11
unix:QMAKE_CFLAGS += -std=c99
unix:LIBS += -std=c++11
clang:QMAKE_CXXFLAGS += -stdlib=libc++
clang:LIBS += -stdlib=libc++ -lc++abi
INCLUDEPATH += $$PWD ../include ../extern