kripken/emscripten — pull request #825 by juj (2013-02-01 21:07:41+00:00)
Title: Std

Fix test_llvmswitch code to compile if built on C++11.

On all platforms, if user does not specify a -std= directive, explicitly pass -std=c++03 (or -std=c++11 if --bind is passed) to Clang to guarantee unified C++ standard to build against.

Clang does not have a consistent cross-platform default standard. Clang 3.2 by default builds with C++11 on Windows and C++03 on Linux. Unknown what OSX or other platforms would be using, so ensure that C++03 is used as the common default.