Cannot execute Hello World on macOS with prefer-dynamic #50001
Labels
-Cprefer-dynamic
Codegen option: Prefer dynamic linking to static linking.
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
O-macos
Operating system: macOS
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I've installed Rust compiler via
brew install rust
and I have the following Hello World program:I've compiled it via:
rustc -Cprefer-dynamic hello.rs
for a smaller size.However I've got the following error when executing it:
Here is the output from
otool
:What I am missing?
The text was updated successfully, but these errors were encountered: