[llvm] r327989 - [Kaleidoscope] doc fix

Sjoerd Meijer via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 20 08:37:15 PDT 2018


Author: sjoerdmeijer
Date: Tue Mar 20 08:37:15 2018
New Revision: 327989

URL: http://llvm.org/viewvc/llvm-project?rev=327989&view=rev
Log:
[Kaleidoscope] doc fix

This fixes the compile command of the example in Chapter 2.

Differential Revision: https://reviews.llvm.org/D43196

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

Modified: llvm/trunk/docs/tutorial/LangImpl02.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl02.rst?rev=327989&r1=327988&r2=327989&view=diff
==============================================================================
--- llvm/trunk/docs/tutorial/LangImpl02.rst (original)
+++ llvm/trunk/docs/tutorial/LangImpl02.rst Tue Mar 20 08:37:15 2018
@@ -716,15 +716,15 @@ Intermediate Representation (IR) from th
 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
 




More information about the llvm-commits mailing list