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
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -570,8 +570,7 @@
570
570
},
571
571
"stdlib-includes": {
572
572
"default": [
573
-
"<mrdocs-root>/share/mrdocs/headers/libcxx",
574
-
"<mrdocs-root>/share/mrdocs/headers/clang"
573
+
"<mrdocs-root>/share/mrdocs/headers/libcxx"
575
574
],
576
575
"description": "When `use-system-stdlib` is disabled, the C++ standard library headers are available in these paths.",
577
576
"items": {
@@ -611,7 +610,7 @@
611
610
"type": "string"
612
611
},
613
612
"use-system-libc": {
614
-
"default": false,
613
+
"default": true,
615
614
"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.",
616
615
"enum": [
617
616
true,
@@ -621,7 +620,7 @@
621
620
"type": "boolean"
622
621
},
623
622
"use-system-stdlib": {
624
-
"default": false,
623
+
"default": true,
625
624
"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
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -537,16 +537,15 @@
537
537
"brief": "Use the system C++ standard library",
538
538
"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.",
539
539
"type": "bool",
540
-
"default": false
540
+
"default": true
541
541
},
542
542
{
543
543
"name": "stdlib-includes",
544
544
"brief": "C++ Standard Library include paths",
545
545
"details": "When `use-system-stdlib` is disabled, the C++ standard library headers are available in these paths.",
546
546
"type": "list<path>",
547
547
"default": [
548
-
"<mrdocs-root>/share/mrdocs/headers/libcxx",
549
-
"<mrdocs-root>/share/mrdocs/headers/clang"
548
+
"<mrdocs-root>/share/mrdocs/headers/libcxx"
550
549
],
551
550
"relative-to": "<config-dir>",
552
551
"must-exist": false,
@@ -557,7 +556,7 @@
557
556
"brief": "Use the system C standard library",
558
557
"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