[Docs][JIT] Update the clang++ invocation lines in the kaleidoscope docs.
authorLang Hames <lhames@gmail.com>
Thu, 6 Nov 2014 00:31:04 +0000 (00:31 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 6 Nov 2014 00:31:04 +0000 (00:31 +0000)
The old examples had missing/incorrect flags that were causing failures on newer
versions of clang and the tutorial code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221419 91177308-0d34-0410-b5e6-96231b3b80d8

docs/tutorial/LangImpl3.rst
docs/tutorial/LangImpl4.rst
docs/tutorial/LangImpl5.rst
docs/tutorial/LangImpl6.rst
docs/tutorial/LangImpl7.rst

index 7174c09c622bb67a80a55b258eb0c1bf39bc7749..b7418ccf32a945c29a0ed3de6202eb994488cff4 100644 (file)
@@ -581,7 +581,7 @@ our makefile/command line about which options to use:
 .. code-block:: bash
 
     # Compile
-    clang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy
+    clang++ -g -O3 toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core` -o toy
     # Run
     ./toy
 
index 44e0cc150954cc6d452c6a4adfdc4570b4a89e28..aa469ca1e7c6a6b4e91a6ce3757d410531acc80f 100644 (file)
@@ -428,7 +428,7 @@ the LLVM JIT and optimizer. To build this example, use:
 .. code-block:: bash
 
     # Compile
-    clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
+    clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
     # Run
     ./toy
 
index ed5b652f63384dad6f90b82a94c8c57da432b03f..2a3a4ce0c8dd1575d8cce571ff2070256857d5de 100644 (file)
@@ -736,7 +736,7 @@ the if/then/else and for expressions.. To build this example, use:
 .. code-block:: bash
 
     # Compile
-    clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
+    clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
     # Run
     ./toy
 
index 42839fbd7504179caa0c3b3e2e0d6f7b0ce83dde..cdceb03fb92eba44c465a001ba2c9099aa26d790 100644 (file)
@@ -729,7 +729,7 @@ the if/then/else and for expressions.. To build this example, use:
 .. code-block:: bash
 
     # Compile
-    clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
+    clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
     # Run
     ./toy
 
index 849ce50060cc6b76a98f0fda280f926e31abda00..c4c7233c6a3dc32079c02111d684809c5bbdeb11 100644 (file)
@@ -847,7 +847,7 @@ mutable variables and var/in support. To build this example, use:
 .. code-block:: bash
 
     # Compile
-    clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
+    clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
     # Run
     ./toy