[Git][ghc/ghc][master] hadrian: improve user settings documentation
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Tue Jun 4 09:07:10 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
2aaea8a1 by Cheng Shao at 2024-06-04T05:06:40-04:00
hadrian: improve user settings documentation
This patch adds minor improvements to hadrian user settings documentation:
- Add missing `ghc.cpp.opts` case
- Remove non-existent `cxx` case
- Clarify `cc.c.opts` also works for C++, while `cc.deps.opts` doesn't
- Add example of passing configure argument to autoconf packages
- - - - -
1 changed file:
- hadrian/doc/user-settings.md
Changes:
=====================================
hadrian/doc/user-settings.md
=====================================
@@ -119,22 +119,22 @@ the right names for them:
* `ghc` refers to GHC commands; the final slot refers to how GHC is invoked:
* `c.opts` for commands that build C files with GHC
- * `hs.opts` for commands that compile Haskell modules with GHC
+ * `cpp.opts` for commands that build C++ files with GHC
+ * `hs.opts` for commands that compile Haskell modules with GHC
* `link.opts` for GHC linking command
* `deps.opts` for commands that figure out dependencies between Haskell modules
(with `ghc -M`)
* `toolargs.opts` for GHC commands that are used to generate the right ghci
argument for `hadrian/ghci` to work
- * `cc` refers to C compiler commands
- * `cxx` refers to C++ compiler commands
+ * `cc` refers to C/C++ compiler commands
- * `c.opts` for commands that call the C compiler on some C files
- * `deps.opts` for commands that call the C compiler for figuring out
- dependencies between C files
+ * `c.opts` for commands that call the C compiler on some C/C++ files
+ * `deps.opts` for commands that call the C compiler for figuring out
+ dependencies between C files. Note that this doesn't work for C++ files yet.
* `cabal.configure.opts` refers to Cabal configure command line. Note that
- package flags can be given by adding `--flags=...` arguments.
+ package flags can be given by adding `--flags=...` arguments. Also, for packages with `build-type: Configure`, you can pass additional arguments to the `configure` script like this: `stage1.rts.cabal.configure.opts+=--configure-option=--enable-asserts-all-ways`
* `hsc2hs.run.opts` allows passing options to `Hsc2Hs` invocations.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2aaea8a1f135bda24604bd9ae3bf5ac2fd03133a
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2aaea8a1f135bda24604bd9ae3bf5ac2fd03133a
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240604/ec1e5d95/attachment-0001.html>
More information about the ghc-commits
mailing list