Skip to content

Commit

Permalink
Support C++14
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Aug 30, 2016
1 parent 4dfb34d commit 39a024a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,11 @@ int main(int argc, const char **argv)
Argv.push_back("-fPIC");
Argv.push_back("-Wno-microsoft"); // get rid of a warning in qtextdocument.h
Argv.push_back("-Wno-pragma-once-outside-header");
#if CLANG_VERSION_MAJOR == 3 && CLANG_VERSION_MINOR <= 5
Argv.push_back("-std=c++11");
#else
Argv.push_back("-std=c++14");
#endif

bool NextArgNotInput = false;
bool HasInput = false;
Expand Down

0 comments on commit 39a024a

Please sign in to comment.