Commit 6bf83234 authored by Andrew Hsieh's avatar Andrew Hsieh Committed by Logan Chien
Browse files

[ndk] Add new option -Qignore-c-std-not-allowed-with-cplusplus

To suppress option like -std=gnu99 defined in LOCAL_CFLAGS but get
passed for C++ compilation by both Android and NDK build system.
Since -std=gnu99 is C and not for C++, clang may error with message
reads (while g++ gives warning):

  error: invalid argument '-std=gnu99' not allowed with 'C++/ObjC++'

This flag is useful for "clang -fsyntax-only" to accept options originally
work for g++.
parent 9bfdf673
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment