<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font size="+1">This is what I used:</font></p>
    <p><tt>cmake -GNinja  ../llvm-project/llvm
        -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi"
        -DLLVM_OPTIMIZED_TABLEGEN=true -DCMAKE_BUILD_TYPE=Debug
        -DCMAKE_C_COMPILER=clang-6.0 -DCMAKE_CXX_COMPILER=clang++-6.0
        -DLLVM_USE_LINKER=lld-6.0 -DLLVM_TARGETS_TO_BUILD="X86"
        -DBUILD_SHARED_LIBS=ON</tt></p>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">Love,
Lou

</pre>
    <div class="moz-cite-prefix">On 10/22/18 11:14 PM, Kristóf Umann
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGcXOD59mhdvVepC77AD929X0Lye+WGCXupGHi4Shh+wngowMQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">Actually, how did you configure cmake? I
        experienced similar linker errors when building other external
        projects, and I suspect it might be down to using a different
        setup.</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 22 Oct 2018 14:19, "Kristóf Umann"
          <<a href="mailto:dkszelethus@gmail.com"
            moz-do-not-send="true">dkszelethus@gmail.com</a>> wrote:<br
            type="attribution">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Cheers, glad it's solved!<br>
              <div class="gmail_quote">
                <div dir="ltr">Lou Wynn <<a
                    href="mailto:lewisurn@gmail.com" target="_blank"
                    moz-do-not-send="true">lewisurn@gmail.com</a>>
                  ezt írta (időpont: 2018. okt. 22., H, 14:16):<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div text="#000000" bgcolor="#FFFFFF">
                    <p><font size="+1">Nice, adding clangFrontend works!
                        The tutorial needs an update.</font></p>
                  </div>
                </blockquote>
                <div>Yup, let's do it then. ;) </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div text="#000000" bgcolor="#FFFFFF">
                    <p><font size="+1">Thanks.</font><br>
                    </p>
                    <pre class="m_-1451677776424910839m_-9003988622945461128moz-signature" cols="72">Love,
Lou</pre>
                  </div>
                </blockquote>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div text="#000000" bgcolor="#FFFFFF">
                    <div
                      class="m_-1451677776424910839m_-9003988622945461128moz-cite-prefix">On
                      10/22/18 8:06 PM, Kristóf Umann wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">Shouldn't it be this?:
                        <div><font face="monospace, monospace">set(LLVM_LINK_COMPONENTS
                            Support)<br>
                            <br>
                            add_clang_executable(loop-<wbr>convert<br>
                              LoopConvert.cpp<br>
                              )<br>
                            target_link_libraries(loop-<wbr>convert<br>
                              PRIVATE</font></div>
                        <div><font face="monospace, monospace"> 
                            clangFrontend<br>
                              clangTooling<br>
                              clangBasic<br>
                              clangASTMatchers<br>
                              )  </font><br>
                        </div>
                      </div>
                      <br>
                    </blockquote>
                  </div>
                </blockquote>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
  </body>
</html>