Skip to content

Commit 33aaad9

Browse files
authored
[Kaleidoscope] LLVM is not needed for chapter two (#69823)
Since the example (llvm/examples/Kaleidoscope/Chapter2/toy.cpp) is self-contained there is no need to use LLVM.
1 parent 96b9b63 commit 33aaad9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -716,15 +716,12 @@ Intermediate Representation (IR) from the AST.
716716
Full Code Listing
717717
=================
718718

719-
Here is the complete code listing for our running example. Because this
720-
uses the LLVM libraries, we need to link them in. To do this, we use the
721-
`llvm-config <https://llvm.org/cmds/llvm-config.html>`_ tool to inform
722-
our makefile/command line about which options to use:
719+
Here is the complete code listing for our running example.
723720

724721
.. code-block:: bash
725722
726723
# Compile
727-
clang++ -g -O3 toy.cpp `llvm-config --cxxflags`
724+
clang++ -g -O3 toy.cpp
728725
# Run
729726
./a.out
730727

llvm/examples/Kaleidoscope/Chapter2/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
set(LLVM_LINK_COMPONENTS
2-
Support
3-
)
4-
51
add_kaleidoscope_chapter(Kaleidoscope-Ch2
62
toy.cpp
73
)

0 commit comments

Comments
 (0)