summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-03-23 15:53:06 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-05-17 00:25:02 -0400
commitfb579e15c56994bc6c4cc266535024f20a81f830 (patch)
treecceee15e84d67bdbbe6eced0a4e89449a416bcc4 /docs
parent8dfea0789957278b99bf302dfb24078fff84b6d2 (diff)
downloadhaskell-fb579e15c56994bc6c4cc266535024f20a81f830.tar.gz
driver: Introduce pgmcxx
Here we introduce proper support for compilation of C++ objects. This includes: * logic in `configure` to detect the C++ toolchain and propagating this information into the `settings` file * logic in the driver to use the C++ toolchain when compiling C++ sources
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/phases.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/users_guide/phases.rst b/docs/users_guide/phases.rst
index 54ed63a06c..b784fa7662 100644
--- a/docs/users_guide/phases.rst
+++ b/docs/users_guide/phases.rst
@@ -38,6 +38,13 @@ given compilation phase:
Use ⟨cmd⟩ as the C compiler.
+.. ghc-flag:: -pgmcxx ⟨cmd⟩
+ :shortdesc: Use ⟨cmd⟩ as the C++ compiler
+ :type: dynamic
+ :category: phase-programs
+
+ Use ⟨cmd⟩ as the C++ compiler.
+
.. ghc-flag:: -pgmlo ⟨cmd⟩
:shortdesc: Use ⟨cmd⟩ as the LLVM optimiser
:type: dynamic