This is an archive of the discontinued LLVM Phabricator instance.

[test-suite] There is no need to check for name clashes explicitly.
ClosedPublic

Authored by tra on Apr 25 2016, 12:48 PM.

Details

Reviewers
MatzeB
Summary

cmake_minimum_required(VERSION 3.2) sets CMP0002 policy to NEW
which will produce an error when someone attempts to create a
new target with the same name.

When that happens llvm_target_prefix() can be used to ensure unique
names for targets within.

Diff Detail

Event Timeline

tra updated this revision to Diff 54888.Apr 25 2016, 12:48 PM
tra retitled this revision from to [test-suite] There is no need to check for name clashes explicitly..
tra updated this object.
tra added a reviewer: MatzeB.
tra added a subscriber: llvm-commits.
MatzeB accepted this revision.Apr 25 2016, 1:08 PM
MatzeB edited edge metadata.

This looks good. Thanks.

This revision is now accepted and ready to land.Apr 25 2016, 1:08 PM

Actually I think getting and setting the registered_executables is obsolete as well without the explicit check.

tra updated this revision to Diff 54891.Apr 25 2016, 1:26 PM
tra edited edge metadata.

Removed registered_executables property.

Still good, yay for simpler code!

tra closed this revision.May 9 2016, 11:50 AM

Committed in r267461