1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-03 09:41:10 +03:00
juvix/app/Commands/Dev/DevCompile.hs
Łukasz Czajka f1bb0e50d9
Remove VampIR compile command and tests (#3104)
* Closes #2841 
* Moves the `vampir` compilation target under `dev`.
* Removes VampIR tests that require the external `vamp-ir` executable.
2024-10-16 15:03:14 +02:00

24 lines
932 B
Haskell

module Commands.Dev.DevCompile where
import Commands.Base
import Commands.Dev.DevCompile.Asm qualified as Asm
import Commands.Dev.DevCompile.Casm qualified as Casm
import Commands.Dev.DevCompile.Core qualified as Core
import Commands.Dev.DevCompile.NativeRust qualified as NativeRust
import Commands.Dev.DevCompile.Options
import Commands.Dev.DevCompile.Reg qualified as Reg
import Commands.Dev.DevCompile.Rust qualified as Rust
import Commands.Dev.DevCompile.Tree qualified as Tree
import Commands.Dev.DevCompile.Vampir qualified as Vampir
runCommand :: (Members AppEffects r) => DevCompileCommand -> Sem r ()
runCommand = \case
Core opts -> Core.runCommand opts
Reg opts -> Reg.runCommand opts
Asm opts -> Asm.runCommand opts
Tree opts -> Tree.runCommand opts
Casm opts -> Casm.runCommand opts
Rust opts -> Rust.runCommand opts
NativeRust opts -> NativeRust.runCommand opts
Vampir opts -> Vampir.runCommand opts