This is an archive of the discontinued LLVM Phabricator instance.

[libc++abi] Fix remote execution of .sh.cpp tests
ClosedPublic

Authored by broadwaylamb on Mar 31 2020, 6:08 PM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Restricted Project
Commits
rGfee0026fc7eb: [libc++abi] Fix remote execution of .sh.cpp tests
Summary

Diff Detail

Event Timeline

broadwaylamb created this revision.Mar 31 2020, 6:08 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 31 2020, 6:08 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
broadwaylamb marked 2 inline comments as done.Mar 31 2020, 6:12 PM
broadwaylamb added inline comments.
libcxx/utils/ssh.py
72

We're dealing with target-specific paths here. For now assume that the target uses POSIX paths.

libcxxabi/test/incomplete_type.sh.cpp
25–26

We need this because if both static and shared libc++abi are present, the linker will prefer the shared one. And if we're running this test viaSSH, we want to link it statically.

ldionne accepted this revision.Apr 1 2020, 7:08 AM

I don't like adding a new substitution just to handle that specific configuration, but we can get rid of it soon when we simplify the config files anyway.

Other changes for posixpath & al look obviously right.

This revision is now accepted and ready to land.Apr 1 2020, 7:08 AM

I don't like adding a new substitution just to handle that specific configuration, but we can get rid of it soon when we simplify the config files anyway.

That's what I thought. This patch is mostly for making builders green.

This revision was automatically updated to reflect the committed changes.