This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Enable AddressSanitizer for Fuchsia targets
ClosedPublic

Authored by mcgrathr on Jul 26 2017, 3:34 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

mcgrathr created this revision.Jul 26 2017, 3:34 PM
phosek added inline comments.Jul 26 2017, 3:46 PM
cmake/caches/Fuchsia-stage2.cmake
50 ↗(On Diff #108373)

I think we also need:

set(RUNTIMES_${target}-fuchsia_SANITIZER_CXX_ABI "libcxxabi" ON CACHE STRING "")
mcgrathr added inline comments.Aug 1 2017, 3:08 PM
cmake/caches/Fuchsia-stage2.cmake
50 ↗(On Diff #108373)

That seems to default correctly when building it all together.
Should we add it anyway?

phosek added inline comments.Aug 1 2017, 5:25 PM
cmake/caches/Fuchsia-stage2.cmake
50 ↗(On Diff #108373)

You're right, it's set by default so it's not needed.

phosek accepted this revision.Aug 1 2017, 5:25 PM

LGTM

This revision is now accepted and ready to land.Aug 1 2017, 5:25 PM

One more thing, would it be possible add a test case to test/Driver/fuchsia.c covering this?

mcgrathr updated this revision to Diff 109428.Aug 2 2017, 2:05 PM

Added tests.

phosek accepted this revision.Aug 2 2017, 6:48 PM

LGTM

mcgrathr updated this revision to Diff 109605.Aug 3 2017, 11:27 AM

Check -dynamic-linker in test.

This revision was automatically updated to reflect the committed changes.