This is an archive of the discontinued LLVM Phabricator instance.

[ubsan-minimal] Enable on Darwin
ClosedPublic

Authored by vsk on Sep 8 2017, 3:55 PM.

Diff Detail

Event Timeline

vsk created this revision.Sep 8 2017, 3:55 PM
vsk added a comment.Sep 8 2017, 3:59 PM

Hm, actually the tests are just unsupported. We'll need a small driver change to enable testing.

vsk updated this revision to Diff 114457.Sep 8 2017, 4:16 PM
  • Actually enable testing on Darwin. Depends on D37649
eugenis added inline comments.Sep 8 2017, 6:23 PM
lib/ubsan_minimal/CMakeLists.txt
20–73

Looks like the only difference between apple and non-apple is in the OS argument, and that is ignored by add_compiler_rt_* macros on non-apple.
Could these branches be merged?

vsk added inline comments.Sep 11 2017, 1:24 PM
lib/ubsan_minimal/CMakeLists.txt
20–73

Thanks, yes it can! It looks like the OS argument is just ignored when "APPLE" is not defined.

vsk updated this revision to Diff 114667.Sep 11 2017, 1:28 PM
  • Simplify, per review feedback
eugenis accepted this revision.Sep 11 2017, 1:36 PM

Perfect.

This revision is now accepted and ready to land.Sep 11 2017, 1:36 PM
This revision was automatically updated to reflect the committed changes.