mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 05:40:09 +00:00
[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:
parent
96b9b63034
commit
33aaad9427
@ -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
|
||||
|
||||
|
@ -1,7 +1,3 @@
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
add_kaleidoscope_chapter(Kaleidoscope-Ch2
|
||||
toy.cpp
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user