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
@@ -561,8 +561,7 @@
561
561
},
562
562
"stdlib-includes": {
563
563
"default": [
564
-
"<mrdocs-root>/share/mrdocs/headers/libcxx",
565
-
"<mrdocs-root>/share/mrdocs/headers/clang"
564
+
"<mrdocs-root>/share/mrdocs/headers/libcxx"
566
565
],
567
566
"description": "When `use-system-stdlib` is disabled, the C++ standard library headers are available in these paths.",
568
567
"items": {
@@ -602,7 +601,7 @@
602
601
"type": "string"
603
602
},
604
603
"use-system-libc": {
605
-
"default": false,
604
+
"default": true,
606
605
"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.",
607
606
"enum": [
608
607
true,
@@ -612,7 +611,7 @@
612
611
"type": "boolean"
613
612
},
614
613
"use-system-stdlib": {
615
-
"default": false,
614
+
"default": true,
616
615
"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
@@ -528,16 +528,15 @@
528
528
"brief": "Use the system C++ standard library",
529
529
"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.",
530
530
"type": "bool",
531
-
"default": false
531
+
"default": true
532
532
},
533
533
{
534
534
"name": "stdlib-includes",
535
535
"brief": "C++ Standard Library include paths",
536
536
"details": "When `use-system-stdlib` is disabled, the C++ standard library headers are available in these paths.",
537
537
"type": "list<path>",
538
538
"default": [
539
-
"<mrdocs-root>/share/mrdocs/headers/libcxx",
540
-
"<mrdocs-root>/share/mrdocs/headers/clang"
539
+
"<mrdocs-root>/share/mrdocs/headers/libcxx"
541
540
],
542
541
"relative-to": "<config-dir>",
543
542
"must-exist": false,
@@ -548,7 +547,7 @@
548
547
"brief": "Use the system C standard library",
549
548
"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