forked from OSchip/llvm-project
[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. llvm-svn: 221419
This commit is contained in:
parent
ec7d67ede0
commit
aa0f673413
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue