@@ -143,7 +143,7 @@ Then we type:
143
143
.. code-block :: console
144
144
145
145
$ clang++ -std=c++20 Hello.cppm --precompile -o Hello.pcm
146
- $ clang++ -std=c++20 use.cpp -fprebuilt-module-path=. Hello.pcm -o Hello.out
146
+ $ clang++ -std=c++20 use.cpp -fmodule-file=Hello=Hello.pcm Hello.pcm -o Hello.out
147
147
$ ./Hello.out
148
148
Hello World!
149
149
@@ -200,15 +200,15 @@ Then we are able to compile the example by the following command:
200
200
$ clang++ -std=c++20 interface_part.cppm --precompile -o M-interface_part.pcm
201
201
$ clang++ -std=c++20 impl_part.cppm --precompile -fprebuilt-module-path=. -o M-impl_part.pcm
202
202
$ clang++ -std=c++20 M.cppm --precompile -fprebuilt-module-path=. -o M.pcm
203
- $ clang++ -std=c++20 Impl.cpp -fmodule-file=M=M.pcm -c -o Impl.o
203
+ $ clang++ -std=c++20 Impl.cpp -fprebuilt-module-path=. -c -o Impl.o
204
204
205
205
# Compiling the user
206
206
$ clang++ -std=c++20 User.cpp -fprebuilt-module-path=. -c -o User.o
207
207
208
208
# Compiling the module and linking it together
209
- $ clang++ -std=c++20 M-interface_part.pcm -c -o M-interface_part.o
210
- $ clang++ -std=c++20 M-impl_part.pcm -c -o M-impl_part.o
211
- $ clang++ -std=c++20 M.pcm -c -o M.o
209
+ $ clang++ -std=c++20 M-interface_part.pcm -fprebuilt-module-path=. - c -o M-interface_part.o
210
+ $ clang++ -std=c++20 M-impl_part.pcm -fprebuilt-module-path=. - c -o M-impl_part.o
211
+ $ clang++ -std=c++20 M.pcm -fprebuilt-module-path=. - c -o M.o
212
212
$ clang++ User.o M-interface_part.o M-impl_part.o M.o Impl.o -o a.out
213
213
214
214
We explain the options in the following sections.
@@ -218,7 +218,6 @@ How to enable standard C++ modules
218
218
219
219
Currently, standard C++ modules are enabled automatically
220
220
if the language standard is ``-std=c++20 `` or newer.
221
- The ``-fmodules-ts `` option is deprecated and is planned to be removed.
222
221
223
222
How to produce a BMI
224
223
~~~~~~~~~~~~~~~~~~~~
0 commit comments