[PATCH] D43196: [Kaleidoscope] doc fix

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 20 08:40:00 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL327989: [Kaleidoscope] doc fix (authored by SjoerdMeijer, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D43196?vs=133874&id=139132#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D43196

Files:
  llvm/trunk/docs/tutorial/LangImpl02.rst


Index: llvm/trunk/docs/tutorial/LangImpl02.rst
===================================================================
--- llvm/trunk/docs/tutorial/LangImpl02.rst
+++ llvm/trunk/docs/tutorial/LangImpl02.rst
@@ -716,15 +716,15 @@
 Full Code Listing
 =================
 
-Here is the complete code listing for this and the previous chapter.
-Note that it is fully self-contained: you don't need LLVM or any
-external libraries at all for this. (Besides the C and C++ standard
-libraries, of course.) To build this, just compile with:
+Here is the complete code listing for our running example. Because this 
+uses the LLVM libraries, we need to link them in. To do this, we use the
+`llvm-config <http://llvm.org/cmds/llvm-config.html>`_ tool to inform
+our makefile/command line about which options to use:
 
 .. code-block:: bash
 
     # Compile
-    clang++ -g -O3 toy.cpp
+    clang++ -g -O3 toy.cpp `llvm-config --cxxflags`
     # Run
     ./a.out
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43196.139132.patch
Type: text/x-patch
Size: 950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180320/b646c047/attachment.bin>


More information about the llvm-commits mailing list