In Source/WebCore/bindings/scripts/preprocessor.pm and Source/WebCore/dom/make_names.pl, we use -x c++ to make sure the C preprocessor is running in C++ mode. This cause problem if the user set CC with options which is not available in C++, such as "clang -std=c11". We should use CXX instead for preprocessor, so -x c++ will not cause problem.
Created attachment 224165 [details] Replace CC with CXX
Compiler flags should be placed into CFLAGS and CXXFLAGS environment variables.
We shuold not assume the C compiler is the same as the C++ compiler.