Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Add another comment about target feature that also stops miscompilation
Browse files Browse the repository at this point in the history
  • Loading branch information
benhansen-io committed Feb 16, 2023
1 parent 33e511d commit 7389dbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/rust-esp-miscompile-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ ExternalProject_Add(
CARGO_CMAKE_BUILD_SDKCONFIG=${sdkconfig}
CARGO_CMAKE_BUILD_ESP_IDF=${idf_path}
CARGO_CMAKE_BUILD_COMPILER=${CMAKE_C_COMPILER}
RUSTFLAGS=${ESP_RUSTFLAGS}
RUSTFLAGS=${ESP_RUSTFLAGS} # Changing to below also fixes the miscompilation
#RUSTFLAGS=-Ctarget-feature=-loop
cargo build --target ${RUST_TARGET} --target-dir ${CARGO_TARGET_DIR} ${CARGO_BUILD_ARG} ${CARGO_BUILD_STD_ARG}
INSTALL_COMMAND ""
BUILD_ALWAYS TRUE
Expand Down

0 comments on commit 7389dbd

Please sign in to comment.