diff options
author | Chia-I Wu <[email protected]> | 2011-11-26 11:20:05 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-11-26 11:42:08 +0800 |
commit | d2cd621086fdf620a96d599bac0873ff58ddf137 (patch) | |
tree | 125fdc97a1ae29408d82936bd7356109545c350e /Android.common.mk | |
parent | 4d3d6f76ff165ca92544432ca512c9652cab9110 (diff) |
android: pass -std=c99 by default
Several modules expect a C99 compiler already. It is also the default for
Makefile build.
Diffstat (limited to 'Android.common.mk')
-rw-r--r-- | Android.common.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Android.common.mk b/Android.common.mk index f28ddc2ef66..e8b900697f3 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -21,6 +21,15 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. +# use c99 compiler by default +ifeq ($(LOCAL_CC),) +ifeq ($(LOCAL_IS_HOST_MODULE),true) +LOCAL_CC := $(HOST_CC) -std=c99 +else +LOCAL_CC := $(TARGET_CC) -std=c99 +endif +endif + LOCAL_C_INCLUDES += \ $(MESA_TOP)/include |