Skip to content

Commit 7b93491

Browse files
TylerMSFTTylerMSFT
authored andcommitted
reorder explanation of switches to match command line
1 parent 3454863 commit 7b93491

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/cpp/tutorial-import-stl-named-module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ The statement `import std;` or `import std.compat;` imports the standard library
7777
7878
| Switch | Meaning |
7979
|---|---|
80-
| [`/c`](../build/reference/c-compile-without-linking.md) | Compile without linking, because we are just building the binary named module interface at this point. |
8180
| [`/std:c++:latest`](../build/reference/std-specify-language-standard-version.md) | Use the latest version of the C++ language standard and library. Although module support is available under `/std:c++20`, you need the latest standard library to get support for standard library named modules. |
8281
| [`/EHsc`](../build/reference/eh-exception-handling-model.md) | Use C++ exception handling, except for functions marked `extern "C"`. |
82+
| [`/c`](../build/reference/c-compile-without-linking.md) | Compile without linking, because we are just building the binary named module interface at this point. |
8383
| [`/W4`](../build/reference/w4-enable-all-warnings.md) | Using /W4 is generally recommended, especially for new projects because it enables all level 1, level 2, level 3, and most level 4 (informational) warnings, which can help you catch potential issues early. It essentially provides lint-like warnings that can help ensure the fewest possible hard-to-find code defects. |
8484
85-
You can control the object file name and the named module interface file name with the following switches:
85+
If your build scenario requires it, you can control the object file name and the named module interface file name with the following switches:
8686
- [`/Fo`](../build/reference/fo-object-file-name.md). For example, `/Fo "somethingelse.obj"`. By default, the compiler creates a file name that is the same as the module name you are compiling. In the example, the output name is `std.obj` because we are compiling the file `std.ixx`.
8787
- [`/ifcOutput`](../build/reference/ifcoutput-named-module-interface-file-name.md). For example, `/ifcOutput "somethingelse.ifc"`. In the example, the generated `ifc` file is `std.ifc` because we are compiling the file `std.ixx`.
8888

0 commit comments

Comments
 (0)