This repository was archived by the owner on Jan 24, 2022. It is now read-only.
Commit 6f719b6
Merge #310
310: Only emit link_section for cortex-m r=jonas-schievink a=adamgreig
Previously we always emitted `link_section`, even though it only had an
effect when our linker script was being used (and only made sense on
cortex-m targets). This breaks building the code for a MacOS target,
which is occasionally useful for running `cargo check` etc.
In the macros crate we don't have the target information available, so
instead we continue to emit `link_section` except specifically on MacOS.
This keeps the fix from #306 but hopefully resolves the confusion in #74 (comment).
Co-authored-by: Adam Greig <adam@adamgreig.com>2 files changed
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
283 | 285 | | |
284 | 286 | | |
285 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
913 | | - | |
914 | | - | |
| 913 | + | |
915 | 914 | | |
916 | 915 | | |
917 | 916 | | |
918 | 917 | | |
919 | 918 | | |
920 | | - | |
921 | | - | |
| 919 | + | |
922 | 920 | | |
923 | 921 | | |
924 | 922 | | |
| |||
1010 | 1008 | | |
1011 | 1009 | | |
1012 | 1010 | | |
1013 | | - | |
1014 | | - | |
| 1011 | + | |
1015 | 1012 | | |
1016 | 1013 | | |
1017 | 1014 | | |
| |||
1073 | 1070 | | |
1074 | 1071 | | |
1075 | 1072 | | |
1076 | | - | |
1077 | | - | |
| 1073 | + | |
1078 | 1074 | | |
1079 | 1075 | | |
1080 | 1076 | | |
| |||
0 commit comments