How do I set my compact compiler, I have it installed already

godblaise@pop-os:~/Desktop/fullstack/private-amm/night-swap$ compact compile contracts/hello-world.compact contracts/managed/hello-world
Error: Failed to run compactc

Caused by:
No default compiler set

1 Like

seems the compiler backend (llvm, wasm, etc.) had not been selected so when compact internally invoked compactc, it failed immediately. In other words, the Compact toolchain was installed, but it didn’t know which backend compiler to use.

The following commands fixed it for me

export COMPACT_BACKEND=wasm

2 Likes