Skip to content

Commit c6f11b3

Browse files
committed
Link with libc again to fix issue #25
Before this, 'cargo build -Z build-std=core --target avr-atmega328p.json' would fail with linking errors to 'abort' and 'memcpy' symbols. After this patch, a debug mode executable can be successfully generated again.
1 parent 0811156 commit c6f11b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avr-atmega328p.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"gcc": ["-mmcu=atmega328p"]
1818
},
1919
"late-link-args": {
20-
"gcc": ["-lgcc"]
20+
"gcc": ["-lgcc", "-lc"]
2121
},
2222
"target-c-int-width": "16",
2323
"target-endian": "little",

0 commit comments

Comments
 (0)