<div dir="ltr">Hi Argytios,<div><br></div><div style>It seems r178372 has caused issues with my Xcode build setup. I checked out fresh LLVM & clang repros from SVN and then ran:</div><div style><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div style><div style>mkdir llvm_build</div></div><div style><div style>cd llvm_build</div></div><div style><div style>cmake -G "Unix Makefiles" ../llvm</div></div><div style><div style>make -j 8</div></div><div style>
<div style><br></div></div><div style><div style>cd ..</div></div><div style><div style>mkdir clang_build</div></div><div style><div style>cd clang_build</div></div><div style><div style>cmake -G Xcode -DCLANG_PATH_TO_LLVM_SOURCE=../llvm -DCLANG_PATH_TO_LLVM_BUILD=../llvm_build -DCMAKE_BUILD_TYPE=Debug ../llvm/tools/clang</div>
</div></blockquote><div style><div><br></div><div style>I than attempted to build clang in Xcode and got this error in clang-headers:</div><div style><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div style><div style><div style>/Applications/CMake\ 2.8-10.app/Contents/bin/cmake -E create_symlink /Users/willw/clang_svn/clang_build/bin/lib/clang /Users/willw/clang_svn/clang_build/lib/Debug/clang</div></div></div><div style>
<div style><div style>make: *** [clang-headers_buildpart_0] Error 1</div></div></div><div style><div style><div style>Command /bin/sh failed with exit code 2</div></div></div></blockquote><div style><div><br></div><div style>
Reverting r178372 let me build again.</div><div style><br></div><div style>- Will.</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 March 2013 22:51, Argyrios Kyrtzidis <span dir="ltr"><<a href="mailto:akyrtzi@gmail.com" target="_blank">akyrtzi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: akirtzidis<br>
Date: Fri Mar 29 16:51:40 2013<br>
New Revision: 178372<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=178372&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=178372&view=rev</a><br>
Log:<br>
[cmake] Add clang-headers as a dependency of libclang and if we have to copy them<br>
for the IDE case, also create a symlink inside the libclang.dylib directory.<br>
<br>
Modified:<br>
cfe/trunk/lib/Headers/CMakeLists.txt<br>
cfe/trunk/tools/libclang/CMakeLists.txt<br>
<br>
Modified: cfe/trunk/lib/Headers/CMakeLists.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/CMakeLists.txt?rev=178372&r1=178371&r2=178372&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/CMakeLists.txt?rev=178372&r1=178371&r2=178372&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/Headers/CMakeLists.txt (original)<br>
+++ cfe/trunk/lib/Headers/CMakeLists.txt Fri Mar 29 16:51:40 2013<br>
@@ -95,6 +95,13 @@ endif ()<br>
add_custom_target(clang-headers ALL DEPENDS ${out_files})<br>
set_target_properties(clang-headers PROPERTIES FOLDER "Misc")<br>
<br>
+if (other_output_dir)<br>
+ if(UNIX)<br>
+ add_custom_command(TARGET clang-headers POST_BUILD<br>
+ COMMAND ${CMAKE_COMMAND} -E create_symlink "${LLVM_BINARY_DIR}/bin/lib/clang" "${LLVM_BINARY_DIR}/lib/${CMAKE_CFG_INTDIR}/clang")<br>
+ endif()<br>
+endif ()<br>
+<br>
install(FILES ${files} ${output_dir}/arm_neon.h<br>
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ<br>
DESTINATION lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)<br>
<br>
Modified: cfe/trunk/tools/libclang/CMakeLists.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CMakeLists.txt?rev=178372&r1=178371&r2=178372&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CMakeLists.txt?rev=178372&r1=178371&r2=178372&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/tools/libclang/CMakeLists.txt (original)<br>
+++ cfe/trunk/tools/libclang/CMakeLists.txt Fri Mar 29 16:51:40 2013<br>
@@ -74,7 +74,7 @@ if( LLVM_ENABLE_PIC )<br>
set(SHARED_LIBRARY TRUE)<br>
add_clang_library(libclang ${SOURCES})<br>
target_link_libraries(libclang ${LIBRARIES})<br>
- add_dependencies(libclang ${GENERATED_HEADERS})<br>
+ add_dependencies(libclang ${GENERATED_HEADERS} clang-headers)<br>
<br>
if(WIN32)<br>
set_target_properties(libclang<br>
@@ -108,7 +108,7 @@ endif()<br>
if( NOT BUILD_SHARED_LIBS AND NOT WIN32 )<br>
add_clang_library(${LIBCLANG_STATIC_TARGET_NAME} STATIC ${SOURCES})<br>
target_link_libraries(${LIBCLANG_STATIC_TARGET_NAME} ${LIBRARIES})<br>
- add_dependencies(${LIBCLANG_STATIC_TARGET_NAME} ${GENERATED_HEADERS})<br>
+ add_dependencies(${LIBCLANG_STATIC_TARGET_NAME} ${GENERATED_HEADERS} clang-headers)<br>
<br>
set_target_properties(${LIBCLANG_STATIC_TARGET_NAME}<br>
PROPERTIES<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="background-color:rgb(255,255,255);color:rgb(68,68,68);font-family:Arial,Helvetica,sans-serif"><b>Indefiant Ltd.</b></span></div><div><font color="#444444" face="Arial, Helvetica, sans-serif"><span style="font-size:12px"><b><br>
</b></span></font></div><font color="#444444" face="Arial, Helvetica, sans-serif"><span style="font-size:12px">Firsby Lodge, New Main Road, Scamblesby, Louth, Lincs LN11 9XH UK<br></span></font><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;background-color:rgb(255,255,255)">
<span style="color:rgb(68,68,68);font-family:Arial,Helvetica,sans-serif;font-size:x-small"><i>Tel: +44 20 8123 7663 England Registered No. 07936820 VAT No. </i></span><span style="background-color:transparent"><font color="#444444" face="Arial, Helvetica, sans-serif" size="1"><i>128556202</i></font></span></div>
</div>