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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs