[llvm-bugs] [Bug 27751] New: [libc++, cmake] install-libcxx-headers target fails if using __config_site
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun May 15 12:53:38 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27751
Bug ID: 27751
Summary: [libc++, cmake] install-libcxx-headers target fails if
using __config_site
Product: libc++
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: asiri.rathnayake at arm.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Classification: Unclassified
Created attachment 16371
--> https://llvm.org/bugs/attachment.cgi?id=16371&action=edit
Fix.
To reproduce, configure libc++ such that it requires the __config_site
mechanism, for example:
> cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
-DLIBCXX_ENABLE_THREADS=OFF \
-DCMAKE_INSTALL_PREFIX=/path/to/install/
/path/to/llvm
Here the LIBCXX_ENABLE_THREADS=OFF requires the wiring of cmake configuration
options into the final __config header through the __config_site (cmake
generated) header.
Now, attempting to install the libc++ headers with:
> make install-libcxx-headers
Fails because it cannot find the __generated_config header (an intermediate
file generated to glue __config and __config_site).
The attached patch fixes this issue. I'm not too familiar with cmake, please
check and apply as appropriate.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160515/db962c22/attachment.html>
More information about the llvm-bugs
mailing list