commit | 302ea927bb78864938011f1008bbe35a445a9a9c | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Thu Dec 04 13:48:06 2014 -0800 |
committer | Chih-Hung Hsieh <chh@google.com> | Thu Dec 04 13:48:06 2014 -0800 |
tree | 02aee36492159052ee95f31f1671241d9766bf13 | |
parent | bdbcdf52bb5aa9fbd20d2e2d7877eb6549962c89 [diff] |
Add std=gnu++11 flag to compile .c files as C++. Currently the -x c++ flag is used to compile .c files as C++. For clang compilers, default extra C flags for Android .c files is -std=gnu99. Clang compiler rejects -std=gnu99 in C++ mode. Until we rename all .c file in this directory to .cpp, we can use this patch to force compilation in -x c++ and -std=gnu++11. Change-Id: Ibbb1c1394ac1cb45c6508a62986edf669e722cbd