Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b1b6cca

Browse filesBrowse files
hamishmackangerman
authored andcommitted
Disable ghc docs by default
1 parent fe9f1e6 commit b1b6cca
Copy full SHA for b1b6cca

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎compiler/ghc/default.nix

Copy file name to clipboardExpand all lines: compiler/ghc/default.nix
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ let self =
5252
, # Wheter to build in NUMA support
5353
enableNUMA ? true
5454

55+
, enableDocs ? false # Choose between --docs=none and --docs=no-sphinx
56+
5557
, # What flavour to build. An empty string indicates no
5658
# specific flavour and falls back to ghc default values.
5759
ghcFlavour ? lib.optionalString haskell-nix.haskellLib.isCrossTarget (
@@ -317,7 +319,7 @@ let
317319
+ lib.optionalString enableDWARF "+debug_info"
318320
+ lib.optionalString ((enableNativeBignum && hadrianHasNativeBignumFlavour) || targetPlatform.isGhcjs) "+native_bignum"
319321
+ lib.optionalString targetPlatform.isGhcjs "+no_profiled_libs"
320-
} --docs=no-sphinx -j --verbose"
322+
} --docs=${if enableDocs then "no-sphinx" else "none"} -j --verbose"
321323
# This is needed to prevent $GCC from emitting out of line atomics.
322324
# Those would then result in __aarch64_ldadd1_sync and others being referenced, which
323325
# we don't handle in the RTS properly yet. Until we figure out how to _properly_ deal

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.