[PATCH] D39508: [ubsan] lit changes for lld testing, future lto testing.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 2 10:51:51 PDT 2017


lebedev.ri added inline comments.


================
Comment at: test/ubsan/CMakeLists.txt:35
+  endif()
+endmacro()
+
----------------
eugenis wrote:
> I'm not sure we want to test all sanitizers with LLD - they don't really interact with the linker, and it doubles testing time. @pcc what do you think?
For the context, https://github.com/google/oss-fuzz/issues/295#issuecomment-340847238 did sound like the more testing there is, the better.
While in this case, if needed, it is possible to test only some combinations, i'm not sure (did not look yet) it will be possible for other sanitizers.

TBN the addition of LTO can double the testing time yet again, but i suppose it is possible to always test lld and lto as one configuration.


================
Comment at: test/ubsan/lit.common.cfg:68
+  config.unsupported = True
+
+def build_invocation(compile_flags):
----------------
eugenis wrote:
> This code should be shared between cfi/ubsan/asan/msan/sanitizer_common. Please move as much of it as possible one level up.
> 
Could you please clarify, do you mean to move `build_invocation()` into `test/lit.common.cfg`, or the variables?
Moving the function seemed cleaner, but if i do that, i get `NameError: name 'build_invocation' is not defined`, so i'm most likely missing something...
`


Repository:
  rL LLVM

https://reviews.llvm.org/D39508





More information about the llvm-commits mailing list