Skip to content

Commit

Permalink
[ doc ] Update gambit docs (idris-lang#3388)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunhamsteve authored Sep 22, 2024
1 parent 6d02c52 commit f3dca12
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/source/backends/gambit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ Gambit Directives
.. code-block:: shell
$ idris2 --codegen chez --directive extraRuntime=/path/to/extensions.scm -o main Main.idr
$ idris2 --codegen gambit --directive extraRuntime=/path/to/extensions.scm -o main Main.idr
* ``--directive C``

Compile to C.
Compile to C. With this directive, gambit will generate a `.c` file instead of an executable.

.. code-block:: shell
$ idris2 --codegen gambit --directive C -o main.c Main.idr
Gambit Environment Configurations
=================================
Expand All @@ -82,7 +86,5 @@ Gambit Environment Configurations

$ export GAMBIT_GSC_BACKEND=clang

Gambit after version v4.9.3 supports the ``-cc`` option, which configures
the compiler backend Gambit will use to build the binary. Currently to
get this functionality Gambit needs to be built from source, since it is
not yet available in a released version.
Gambit version 4.9.4 or newer supports the ``-cc`` option, which configures
the compiler backend Gambit will use to build the binary.

0 comments on commit f3dca12

Please sign in to comment.