Skip to content

Commit

Permalink
Different linker error
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTheSquid committed Sep 11, 2024
1 parent d6d00f1 commit f8fb2cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
28 changes: 10 additions & 18 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
[build]
target = "xtensa-esp32s3-espidf"

[target.xtensa-esp32s3-espidf]
linker = "ldproxy"
runner = "espflash flash --monitor" # Select this runner for espflash v3.x.x
rustflags = [
"--cfg",
"espidf_time64",
] # Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110
[target.xtensa-esp32s3-none-elf]
runner = "espflash flash --monitor"

[unstable]
build-std = ["std", "panic_abort"]

[env]
MCU = "esp32s3"
# Note: this variable is not used by the pio builder (`cargo build --features pio`)
ESP_IDF_VERSION = "v5.2.2"
ESP_IDF_PATH_ISSUES = 'warn'
ESP_LOGLEVEL = "INFO"

# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
CRATE_CC_NO_DEFAULTS = "1"
[build]
rustflags = ["-C", "link-arg=-nostartfiles"]

target = "xtensa-esp32s3-none-elf"

[unstable]
build-std = ["alloc", "core"]
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #![no_std]
#![no_std]
// #![feature(const_mut_refs)]

// use core::{
Expand Down

0 comments on commit f8fb2cd

Please sign in to comment.