-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
symbols that should be forced into the linking process, even if they aren't referenced by the linked code. Closes #56
- Loading branch information
1 parent
0b248df
commit 46b191a
Showing
19 changed files
with
682 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Required symbols | ||
|
||
This entry is used to tell the linker that a symbol should be linked into the | ||
build, even if it isn't refenced in any code. | ||
|
||
This behavior is usually used when linking static libraries (`.a`) into the | ||
build, since the default linking behavior for those archives is to only pull | ||
symbols that are refenced on the rest of the build. | ||
|
||
Every attribute listed is optional unless explicitly stated. | ||
|
||
## Table of contents | ||
|
||
- [Required symbols](#required-symbols) | ||
- [Table of contents](#table-of-contents) | ||
- [`name`](#name) | ||
- [Example](#example) | ||
- [Valid values](#valid-values) | ||
- [`include_if_any`, `include_if_all`, `exclude_if_any` and `exclude_if_all`](#include_if_any-include_if_all-exclude_if_any-and-exclude_if_all) | ||
|
||
## `name` | ||
|
||
This field is **required**. | ||
|
||
The name of the corresponding symbol to be required. | ||
|
||
### Example | ||
|
||
```yaml | ||
required_symbols: | ||
- name: guMtxCatL | ||
``` | ||
### Valid values | ||
Non empty string. | ||
TODO: Impose rules for valid names? | ||
## `include_if_any`, `include_if_all`, `exclude_if_any` and `exclude_if_all` | ||
|
||
These fields allow to conditionally include or exclude a given segment depending | ||
on the current [custom options](custom_options.md). | ||
|
||
Their syntax is the same as their [`file`](file.md#include_if_any) counterparts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.