This is an archive of the discontinued LLVM Phabricator instance.

Use $<TARGET_FILE:...> to get the path lf lldb in test runs.
AbandonedPublic

Authored by sas on Aug 27 2015, 3:55 PM.

Details

Reviewers
zturner
clayborg
Summary

Instead of hardcoding the path, we should use $<TARGET_FILE:...> which
works better when the output path differs, e.g. when building with MSVC.

$<TARGET_FILE:...> is expanded during the generation of the final build
files, so we can't use it in output messages/comments. This patch
modifies build messages to display the full command instead of "Testing
LLDB with ..." messages.

Diff Detail

Event Timeline

sas updated this revision to Diff 33369.Aug 27 2015, 3:55 PM
sas retitled this revision from to Use $<TARGET_FILE:...> to get the path lf lldb in test runs..
sas updated this object.
sas added reviewers: zturner, clayborg.
sas added a subscriber: lldb-commits.
zturner edited edge metadata.Aug 27 2015, 4:01 PM
zturner added a subscriber: zturner.

I'm not familiar with that $<TARGET_FILE> expression, but if you're certain
that it's equivalent to what was there previously, this looks fine.

But why were the two "Testing LLDB..." messages removed?

sas added a comment.Aug 27 2015, 4:07 PM

I removed the "Testing..." messages because $<TARGET_FILE:...> won't be expanded in the context of a log message. Basically, you'll end up with ninja/msvc/make printing "Testing LLDB with args: --arch=x86_64;--executable;$<TARGET_FILE:lldb>;-s;/..." (even though it will be running the right command with the actual lldb path).

I think it's still worth printing something, even if it's just "Testing
LLDB with N processes", where you fill in the value for N

sas planned changes to this revision.Sep 10 2015, 11:36 AM
sas abandoned this revision.Oct 26 2017, 10:09 AM