This is an archive of the discontinued LLVM Phabricator instance.

[libc++][tests] Use CMake provided paths for includes and libdir instead of hardcoding them
ClosedPublic

Authored by ldionne on Mar 15 2022, 7:55 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Restricted Project
Commits
rG78669c4185e4: [libc++][tests] Use CMake provided paths for includes and libdir instead of…
Summary

In the new-style testing configurations, we were hardcoding paths to the
include and lib directories, which was incorrect but always went
unnoticed because the hardcoded values always happened to match the
actual value.

When using new-style configs with the bootstrapping build, this falls
appart -- and we never noticed this because the bootstrapping build was
still using old style configs.

This patch removes the %{install} substitution, which makes it too
tempting to hardcode installation paths, and it also switches the
bootstrapping build to actually using new-style configs like we
always intended to do.

Diff Detail

Event Timeline

ldionne created this revision.Mar 15 2022, 7:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 7:55 AM
ldionne requested review of this revision.Mar 15 2022, 7:55 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 15 2022, 7:55 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne updated this revision to Diff 415502.Mar 15 2022, 10:54 AM

Fix paths from libc++abi's testing config. This should fix CI.

ldionne accepted this revision.Mar 16 2022, 9:34 AM
This revision is now accepted and ready to land.Mar 16 2022, 9:34 AM