<div class="gmail_quote">On Fri, Jun 8, 2012 at 8:36 PM, Krunal Rao <span dir="ltr"><<a href="mailto:krunal.rao78@gmail.com" target="_blank">krunal.rao78@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im">On 17 May 2012 10:03, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Mon, May 14, 2012 at 7:51 PM, Krunal Rao <<a href="mailto:krunal.rao78@gmail.com" target="_blank">krunal.rao78@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I some questions/observations on building Clang v 3.0 (and LLVM 3.0),<br>
> unmodified website sources with Visual Studio 2010 Express.<br>
><br>
> 1. I followed the instructions on:<br>
> <a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a> , installed the required<br>
> software (cmake, python, gnuwin32), updated the PATH environmental<br>
> variable and launched:<br>
> C:\Users\XXX\prj\llvm-3.0\build>cmake -G "Visual Studio 10"<br>
> -DCMAKE_INSTALL_PREFIX=C:\Users\XXX\prj\llvm-3.0\llvm-3.0.install<br>
> ..\llvm-3.0.src<br>
> (the result is reported at the end of the e-mail in case it helps).<br>
> LVVM.sln is correctly generated.<br>
> Opening it with Visual Studio 2010 Express results in a problem: some<br>
> projects (Clang executables, Clang libraries, ...) are unavailable as<br>
> "Solution Folders are unsupported in this version."<br>
> I can still compile clang and ALL_BUILD fine, so it may be worth<br>
> adding a notice on the getting started webpage.<br>
<br>
</div>By the way, you can now switch off using solution folders in cmake<br>
with -DLLVM_USE_FOLDERS=OFF<br>
<br>
Cheers,<br>
/Manuel</blockquote><div><br></div></div><div>I just downloaded Clang 3.1 and it seems that this option is gone, is an alternative available to avoid the solution folders?</div></div></blockquote><div><br></div><div>If I'm not mistaken, the patch landed after 3.1 was cut. You can simply patch this in yourself:</div>
--- llvm/trunk/CMakeLists.txt 2012/05/07 19:38:40 156319<br>+++ llvm/trunk/CMakeLists.txt 2012/05/09 15:10:54 156472<br>@@ -15,7 +15,10 @@<br> <br> set(PACKAGE_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}svn")<br>
<br>-set_property(GLOBAL PROPERTY USE_FOLDERS ON)<br>+option(LLVM_USE_FOLDERS "Enable solution folders in Visual Studio. Disable for Express versions." ON)<br>+if ( LLVM_USE_FOLDERS )<br>+ set_property(GLOBAL PROPERTY USE_FOLDERS ON)<br>
+endif()<br> <br> include(VersionFromVCS)<br> <div><br></div><div>Cheers,</div><div>/Manuel</div></div>