Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 6c100e7

Browse files
committed
[Docs][JIT] Update the clang++ invocation lines in the kaleidoscope docs.
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
1 parent 5940390 commit 6c100e7

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/tutorial/LangImpl3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ our makefile/command line about which options to use:
581581
.. code-block:: bash
582582
583583
# Compile
584-
clang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy
584+
clang++ -g -O3 toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core` -o toy
585585
# Run
586586
./toy
587587

docs/tutorial/LangImpl4.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ the LLVM JIT and optimizer. To build this example, use:
428428
.. code-block:: bash
429429
430430
# Compile
431-
clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
431+
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
432432
# Run
433433
./toy
434434

docs/tutorial/LangImpl5.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ the if/then/else and for expressions.. To build this example, use:
736736
.. code-block:: bash
737737
738738
# Compile
739-
clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
739+
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
740740
# Run
741741
./toy
742742

docs/tutorial/LangImpl6.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ the if/then/else and for expressions.. To build this example, use:
729729
.. code-block:: bash
730730
731731
# Compile
732-
clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
732+
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
733733
# Run
734734
./toy
735735

docs/tutorial/LangImpl7.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ mutable variables and var/in support. To build this example, use:
847847
.. code-block:: bash
848848
849849
# Compile
850-
clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
850+
clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
851851
# Run
852852
./toy
853853

0 commit comments

Comments
 (0)