OSDN Git Service

Let clang decide ASan linker flags for the host.
authorDan Albert <danalbert@google.com>
Sat, 15 Nov 2014 01:15:00 +0000 (17:15 -0800)
committerDan Albert <danalbert@google.com>
Fri, 5 Dec 2014 22:52:56 +0000 (14:52 -0800)
commitb58fb4aac63e729fbbe7a47a03296c9f3c5ec5ff
treedb5f836a6b252eeb489f2c243a77a2409756afe6
parent37979c5749bfa516094080f9e8a5c0f387273c5b
Let clang decide ASan linker flags for the host.

Pass -fsanitize=address instead of manually specifying asan libraries
and other linker flags.

Note that we enable LOCAL_ALLOW_UNDEFINED_SYMBOLS by default for host
builds because ASAN only links symbols in the final executable, so
there will _always_ be undefined symbols in intermediate libraries.

Bug: 18208352
Change-Id: Ief55ab296e94974560eeb10507ec8d90f0025d5c
core/binary.mk
core/clang/config.mk