You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/usage.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -278,7 +278,7 @@ It's also common for libraries to depend on the C++ standard library, the C stan
278
278
279
279
That means unless `-nostdinc` is defined, all systems include paths are included. This is what allows the user to also use headers like `<Windows.h>` or `<linux/version.h>` without explicitly including anything else, even though they are not part of the C standard library. This is often seen as a convenience but can lead to portability issues.
280
280
281
-
In this context, MrDocs provides the `use-system-stdlib` and `use-system-libc` options. Both are set as `false` by default, meaning MrDocs will compile the code as if the `-nostdinc++ -nostdlib++` and `-nostdinc` flags were passed to Clang. Additionally:
281
+
In this context, MrDocs provides the `use-system-stdlib` and `use-system-libc` options. Both are set as `true` by default; setting both to `false` results in MrDocs compiling the code as if the `-nostdinc++ -nostdlib++` and `-nostdinc` flags were passed to Clang. Additionally:
282
282
283
283
- When `use-system-stdlib` is `false`, MrDocs will use the bundled libc++ headers available in `<mrdocs-root>/share/mrdocs/headers/libcxx` and `<mrdocs-root>/share/mrdocs/headers/clang`. These paths can be adjusted with the `stdlib-includes` option.
284
284
- When `use-system-libc` is `false`, MrDocs will use the bundled libc stubs available in `<mrdocs-root>/share/mrdocs/headers/libc-stubs`. This path can be adjusted with the `libc-includes` option.
Copy file name to clipboardExpand all lines: docs/mrdocs.schema.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -557,7 +557,7 @@
557
557
"type": "string"
558
558
},
559
559
"use-system-libc": {
560
-
"default": false,
560
+
"default": true,
561
561
"description": "To achieve reproducible results, MrDocs bundles the LibC headers with its definitions. To use the C standard library available in the system instead, set this option to true.",
562
562
"enum": [
563
563
true,
@@ -567,7 +567,7 @@
567
567
"type": "boolean"
568
568
},
569
569
"use-system-stdlib": {
570
-
"default": false,
570
+
"default": true,
571
571
"description": "To achieve reproducible results, MrDocs bundles the LibC++ headers. To use the C++ standard library available in the system instead, set this option to true.",
Copy file name to clipboardExpand all lines: src/lib/ConfigOptions.json
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -493,16 +493,15 @@
493
493
"brief": "Use the system C++ standard library",
494
494
"details": "To achieve reproducible results, MrDocs bundles the LibC++ headers. To use the C++ standard library available in the system instead, set this option to true.",
495
495
"type": "bool",
496
-
"default": false
496
+
"default": true
497
497
},
498
498
{
499
499
"name": "stdlib-includes",
500
500
"brief": "C++ Standard Library include paths",
501
501
"details": "When `use-system-stdlib` is disabled, the C++ standard library headers are available in these paths.",
502
502
"type": "list<path>",
503
503
"default": [
504
-
"<mrdocs-root>/share/mrdocs/headers/libcxx",
505
-
"<mrdocs-root>/share/mrdocs/headers/clang"
504
+
"<mrdocs-root>/share/mrdocs/headers/libcxx"
506
505
],
507
506
"relative-to": "<config-dir>",
508
507
"must-exist": false,
@@ -513,7 +512,7 @@
513
512
"brief": "Use the system C standard library",
514
513
"details": "To achieve reproducible results, MrDocs bundles the LibC headers with its definitions. To use the C standard library available in the system instead, set this option to true.",
0 commit comments