[libc++][libc++abi][libunwind] Dedup install path var definitions
authorJohn Ericson <John.Ericson@Obsidian.Systems>
Tue, 11 Jan 2022 03:03:21 +0000 (03:03 +0000)
committerJohn Ericson <John.Ericson@Obsidian.Systems>
Tue, 11 Jan 2022 18:24:50 +0000 (18:24 +0000)
commit0a8d15ad55e344419400f037393f2208214e33e0
tree7a608f1b3d8fd77a69e985e6b6713ecb8deac081
parentbf52210e25e2c19203d9e2663d80befb405d385b
[libc++][libc++abi][libunwind] Dedup install path var definitions

In D116873 I did this for libunwind prior to defining a new install path
variable. But I think the change is good on its own, and libc++{,abi}
could also use it.

libc++ needed the base header var defined above the conditional part to
use it for the prefi+ed headers in the non-target-specific case. For
consistency, I therefore put the unconditional ones above for all 3
libs, which is why I touched the libunwind code (seeing that it had the
core change already)

Reviewed By: phosek, #libunwind, #libc, #libc_abi, ldionne

Differential Revision: https://reviews.llvm.org/D116988
libcxx/CMakeLists.txt
libcxxabi/CMakeLists.txt
libunwind/CMakeLists.txt