Skip to content

Commit 944ccfd

Browse files
Differentiate between main symbols by target
1 parent 20468bb commit 944ccfd

File tree

1 file changed

+1
-1
lines changed
  • Sources/EmbeddedSwift/Documentation.docc/UsingEmbeddedSwift

1 file changed

+1
-1
lines changed

Sources/EmbeddedSwift/Documentation.docc/UsingEmbeddedSwift/Basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $ swiftc -target armv7-none-none-eabi -enable-experimental-feature Embedded -wmo
5252
input1.swift input2.swift ... -c -o output.o
5353
```
5454

55-
> Note: Passing only a single `.swift` file to swiftc results in the generation of a `_main` symbol. During linking, this symbol could potentially clash with other objects that also define one. To avoid this, compile multiple Swift files together or use the `-parse-as-library` flag.
55+
> Note: Passing only a single `.swift` file to swiftc results in the generation of a `_main` (Mach-O targets) or `main` (ELF) symbol. During linking, this symbol could potentially clash with other objects that also define one. To avoid this, compile multiple Swift files together or use the `-parse-as-library` flag.
5656
5757
Additionally, you probably want to specify additional Clang and/or LLVM flags to get the compiler to produce code for the exact ISA and ABI you need for your target.
5858

0 commit comments

Comments
 (0)