OSDN Git Service

Add "WITH_SYNTAX_CHECK=1 make ..."
authorAndrew Hsieh <andrewhsieh@google.com>
Tue, 27 Aug 2013 09:33:06 +0000 (17:33 +0800)
committerAndrew Hsieh <andrewhsieh@google.com>
Wed, 4 Sep 2013 01:26:25 +0000 (09:26 +0800)
commit6cea59a4b9b62442a5e17f6954e308a35ba12b5e
treee3244d720e8972e32e7217f91d2be149f89387be
parentd58df2de78b798f8fc301afcfeb61f574629b8ce
Add "WITH_SYNTAX_CHECK=1 make ..."

The new option WITH_SYNTAX_CHECK=1 instructs build system to invoke
"clang -fsyntax-only" to utilize clang's better diagnostics before calling
LOCAL_CC/LOCAL_CXX for code generation.  The compilation time is slightly
longer, and the generated object file should be the same as w/o WITH_SYNTAX_CHECK

Project use lots of GCC extensions (eg. nested function) not supported
by clang may opt out by adding LOCAL_NO_SYNTAX_CHECK:=true

Change-Id: I5689586788ef049bd967364f71f31f1e359bd121
core/binary.mk
core/clear_vars.mk
core/config.mk