[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.
This commit is contained in:
Gonsolo 2024-01-13 05:48:43 +01:00 committed by GitHub
parent 96b9b63034
commit 33aaad9427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View File

@ -716,15 +716,12 @@ Intermediate Representation (IR) from the AST.
Full Code Listing
=================
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 <https://llvm.org/cmds/llvm-config.html>`_ tool to inform
our makefile/command line about which options to use:
Here is the complete code listing for our running example.
.. code-block:: bash
# Compile
clang++ -g -O3 toy.cpp `llvm-config --cxxflags`
clang++ -g -O3 toy.cpp
# Run
./a.out

View File

@ -1,7 +1,3 @@
set(LLVM_LINK_COMPONENTS
Support
)
add_kaleidoscope_chapter(Kaleidoscope-Ch2
toy.cpp
)