<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font size="-1">Joan, For ninja here I would do the following,
noting <a class="moz-txt-link-freetext"
href="https://llvm.org/docs/GettingStarted.html">https://llvm.org/docs/GettingStarted.html</a><br>
</font></p>
<p><font size="-1">cd llvm-project</font></p>
<p><font size="-1">rm -rf build<br>
</font></p>
<p><font size="-1">mkdir build<br>
</font></p>
<p><font size="-1">cd build<br>
</font></p>
<p><font size="-1">Your cmake line might be</font></p>
<p><font size="-1">cmake -G Ninja -DLLVM_ENABLE_PROJECTS=clang
-DCMAKE_INSTALL_PREFIX=/Users/joan/LLVM-9/install
-DLLVM_OPTIMIZED_TABLEGEN=On ../llvm<br>
</font></p>
<p><font size="-1">I would use</font></p>
<p><font size="-1">cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang"
-DLLVM_USE_LINKER=lld -DCMAKE_BUILD_TYPE="Release"
-DCMAKE_INSTALL_PREFIX=/Users/joan/LLVM-9/install ../llvm</font></p>
<p><font size="-1">ninja</font></p>
<p><font size="-1">ninja install</font></p>
<p><font size="-1">I am not familiar with Xcode. But if the above
works you might be in a position to use the executables and
libraries in the just installed directory in an Xcode project.<br>
</font></p>
<p><font size="-1">Neil<br>
</font></p>
<div class="moz-cite-prefix"><font size="-1">On 7/7/19 12:59 PM,
Joan Lluch via llvm-dev wrote:<br>
</font></div>
<blockquote type="cite"
cite="mid:18218EFF-6989-4F90-9BC0-4842740AC92D@icloud.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<font size="-1">Hi zturner</font>
<div class=""><font size="-1"><br class="">
</font></div>
<div class=""><font size="-1">Please, would you describe me step
by step how do I get both a Xcode project and a Ninja setup
for compiling the same?</font>
<div class=""><font size="-1"><br class="">
</font></div>
<div class=""><font size="-1">I have downloaded the Ninja-mac
binary from here <a
href="https://github.com/ninja-build/ninja/releases"
class="" moz-do-not-send="true">https://github.com/ninja-build/ninja/releases</a> and
have setup system path to it. What’s next?</font></div>
<div class=""><font size="-1"><br class="">
</font></div>
<div class=""><font size="-1">Thanks</font></div>
</div>
</blockquote>
</body>
</html>