Skip to content

Commit

Permalink
Fix replay command in MacOS (#133)
Browse files Browse the repository at this point in the history
* Fix replay command in MacOS

The replay command wasn't working on MacOS because the HostIO symbols
were striped from cargo-stylus. To fix this issue, we have to disable
stripping in the release profile.

This fixes introduces the following warning:

    warning: profiles for the non root package will be ignored

We have to edit the profile in the non-root package because the root
package is ignored during cargo install. Otherwise, the solution won't
work after the package is published to crates.io. More information about
this issue is available here:

* rust-lang/cargo#8264
* rust-lang/cargo#11599

* Fix missing symbols in MacOS

Add #[used] static variables pointing to the exported functions so the
linked doesn't remove them from the final binary.

* Revert "Fix replay command in MacOS"

This reverts commit b489394.
  • Loading branch information
gligneul authored Jan 14, 2025
1 parent a56a4f3 commit cdbc563
Showing 1 changed file with 191 additions and 0 deletions.
Loading

0 comments on commit cdbc563

Please sign in to comment.