Skip to content

Commit 9ed2deb

Browse files
authored
Rollup merge of #101338 - diminishedprime:patch-2, r=tmandry
Fix unsupported syntax in .manifest file Fuchsia .manifest files do not support a `#` comment syntax. Because of this, if you copy and paste the current example code for this file, and then remove the line you don't need, you still see an error. To make this a bit easier to follow, split this into two code blocks, one for rustc, and one for cargo.
2 parents 414d79d + 6fbc4d9 commit 9ed2deb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Diff for: src/doc/rustc/src/platform-support/fuchsia.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,18 @@ Now, create the following files inside:
330330
The `package` file describes our package's name and version number. Every
331331
package must contain one.
332332

333-
**`pkg/hello_fuchsia.manifest`**
333+
**`pkg/hello_fuchsia.manifest` if using cargo**
334334
```txt
335-
bin/hello_fuchsia=target/x86_64-fuchsia/debug/hello_fuchsia # If using cargo...
336-
bin/hello_fuchsia=bin/hello_fuchsia # If using rustc...
335+
bin/hello_fuchsia=target/x86_64-fuchsia/debug/hello_fuchsia
336+
lib/ld.so.1=<SDK_PATH>/arch/x64/sysroot/dist/lib/ld.so.1
337+
lib/libfdio.so=<SDK_PATH>/arch/x64/dist/libfdio.so
338+
meta/package=pkg/meta/package
339+
meta/hello_fuchsia.cm=pkg/meta/hello_fuchsia.cm
340+
```
341+
342+
**`pkg/hello_fuchsia.manifest` if using rustc**
343+
```txt
344+
bin/hello_fuchsia=bin/hello_fuchsia
337345
lib/ld.so.1=<SDK_PATH>/arch/x64/sysroot/dist/lib/ld.so.1
338346
lib/libfdio.so=<SDK_PATH>/arch/x64/dist/libfdio.so
339347
meta/package=pkg/meta/package

0 commit comments

Comments
 (0)