roc-lang / basic-cli

A basic Command-Line Interface platform
Universal Permissive License v1.0
88 stars 30 forks source link

Link error when running `cargo build` under `nix develop` #178

Open alexozer opened 6 months ago

alexozer commented 6 months ago

Hi, was trying to build the platform with cargo build and am getting this link error: https://gist.github.com/alexozer/2ab855dc7f37e43c1236eea60ec3fb5c

This seems to happen both inside nix develop and outside.

This is a M2 Macbook Air, with LLVM 16 installed via Homebrew if it matters.

Anton-4 commented 6 months ago

Hi @alexozer :)

The Roc CLI currently takes care of building the platform, so I would not recommend running cargo build in the platform yourself. Instead you can do roc my_app_using_basic_cli.roc and to prevent needless rebuilding after, you can do roc my_app_using_basic_cli.roc --prebuilt-platform.