Commit f0e2218
committed
Only emit link_section for cortex-m.
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.1 parent 8a64815 commit f0e2218
2 files changed
+8
-10
lines changed| 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