llvm.org GIT mirror llvm / 6c100e7
[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 Lang Hames 4 years ago
5 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
580580 .. code-block:: bash
581581
582582 # Compile
583 clang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy
583 clang++ -g -O3 toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core` -o toy
584584 # Run
585585 ./toy
586586
427427 .. code-block:: bash
428428
429429 # Compile
430 clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
430 clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
431431 # Run
432432 ./toy
433433
735735 .. code-block:: bash
736736
737737 # Compile
738 clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
738 clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
739739 # Run
740740 ./toy
741741
728728 .. code-block:: bash
729729
730730 # Compile
731 clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
731 clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
732732 # Run
733733 ./toy
734734
846846 .. code-block:: bash
847847
848848 # Compile
849 clang++ -g toy.cpp `llvm-config --cppflags --ldflags --libs core jit native` -O3 -o toy
849 clang++ -g toy.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core jit native` -O3 -o toy
850850 # Run
851851 ./toy
852852