diff options
author | Patrick Lehmann <Patrick.Lehmann@tu-dresden.de> | 2017-03-04 20:36:18 +0100 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2017-12-10 12:02:05 +0100 |
commit | 3f5cd97cc29039f8f153541808ca85938c00eef4 (patch) | |
tree | a4877e168191ef1e888f3a37fd7b46ece7daebb6 /doc/building/llvm/index.rst | |
parent | f38b0364b5a769eb97e87c6fbf5fc303101883d2 (diff) | |
download | ghdl-3f5cd97cc29039f8f153541808ca85938c00eef4.tar.gz ghdl-3f5cd97cc29039f8f153541808ca85938c00eef4.tar.bz2 ghdl-3f5cd97cc29039f8f153541808ca85938c00eef4.zip |
Restructured build section. Created smaller files. Created (hidden) sub-ToCs. Added out-dated build instructions for Windows GNAT GPL flow from private README.md.
Diffstat (limited to 'doc/building/llvm/index.rst')
-rw-r--r-- | doc/building/llvm/index.rst | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/doc/building/llvm/index.rst b/doc/building/llvm/index.rst new file mode 100644 index 000000000..a2faf9d74 --- /dev/null +++ b/doc/building/llvm/index.rst @@ -0,0 +1,50 @@ +.. _BUILD:llvm: + +LLVM Backend +############ + +.. rubric:: Requirements + +* GCC (Gnu Compiler Collection) +* GNAT (Ada compiler for GCC) +* LLVM (Low-Level-Virtual Machine) + + * 3.5 + * 3.8 + +* CLANG (Compiler front-end for LLVM) + + * 3.5 + * 3.8 + +.. rubric:: Supported platforms + +* :ref:`GNU/Linux with GCC <BUILD:mcode:GNULinux-GCC>` +* :ref:`Windows (x86_64) with MinGW32/MinGW64 <BUILD:mcode:Windows-WinGW>` + +.. toctree:: + :hidden: + + GNULinux-GNAT + Windows-WinGW + + + +GNU/Linux +--------- + +You need to install LLVM (usually depends on :samp:`libedit`, see :ghdlsharp`29`). The supported versions are 3.5 till 3.9, but debugging is only supported with LLVM 3.5. + +- First configure GHDL with the proper arg :samp:`./configure --with-llvm-config`. If :samp:`llvm-config` is not in your path, you can specify it: :samp:`./configure --with-llvm-config=LLVM_INSTALL/bin/llvm-config`. + +.. HINT:: If you want to have stack backtraces on errors (like assert failure or index of out bounds), you need to configure and build :samp:`libbacktrace` from GCC (you don't need to configure GCC). Then add the following arg to configure: :samp:`--with-backtrace-lib=/path-to-gcc-build/libbacktrace/.libs/libbacktrace.a` + +- Then build with :samp:`make` and install with :samp:`make install`. + +Mac OS? +------- + +Windows MinGW 32/64 +------------------- + +
\ No newline at end of file |