Skip to content

Commit

Permalink
Clean up compile targets, remove old commands (#116)
Browse files Browse the repository at this point in the history
* Refresh compilation targets according to the latest juvix
* Remove compilation `--runtime` option as it doesn't exist in the
current Juvix
* Clear non-existing Juvix dev commands
  • Loading branch information
vrom911 authored Jun 19, 2023
1 parent c88f432 commit 2a15f2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 31 deletions.
29 changes: 6 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -992,26 +992,15 @@
"default": "",
"enum": [
"native",
"c",
"wasm",
"html",
"vampir"
"wasm32-wasi",
"geb",
"vampir",
"core",
"asm"
],
"scope": "machine-overridable",
"description": "Compilation backend"
},
"juvix-mode.compilationRuntime": {
"type": "string",
"default": "",
"enum": [
"",
"standalone",
"wasi-standalone",
"wasi-libc"
],
"scope": "machine-overridable",
"description": "Runtime used for compilation"
},
"juvix-mode.compilationOutputFile": {
"type": "string",
"scope": "machine-overridable"
Expand Down Expand Up @@ -2857,16 +2846,10 @@
"InternalPretty": "$juvix dev internal pretty $filename",
"InternalArity": "$juvix dev internal arity $filename",
"InternalTypecheck": "$juvix dev internal typecheck $filename",
"InternalCoreEval": "$juvix dev internal core-eval $filename",
"InternalCoreEvalShowDeBruijn": "$juvix dev internal core-eval --show-de-brujin $filename",
"InternalCoreEvalTransformsLifting": "$juvix dev internal core-eval --transforms lifting $filename",
"InternalCoreEvalTransformsMoveApps": "$juvix dev internal core-eval --transforms move-apps $filename",
"InternalCoreEvalTransformsRemoveTypeArgs": "$juvix dev internal core-eval --transforms remove-type-args $filename",
"InternalCoreEvalTransformsRemoveTopEtaExpand": "$juvix dev internal core-eval --transforms top-eta-expand $filename",
"CoreEval": "$juvix dev core eval $filename",
"CoreRead": "$juvix dev core read $filename",
"AsmRun": "$juvix dev asm run $filename",
"GebEval": "$juvix dev geb eval $filename",
"AsmRun": "$juvix dev asm run $filename",
"AsmValidate": "$juvix dev asm validate $filename",
"AsmCompile": "$juvix dev asm compile $filename",
"RuntimeCompile": "$juvix dev runtime compile $filename",
Expand Down
8 changes: 0 additions & 8 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ export class JuvixConfig {
readonly compilationTarget = new VsCodeSetting(
'juvix-mode.compilationTarget'
);
readonly compilationRuntime = new VsCodeSetting(
'juvix-mode.compilationRuntime'
);
readonly compilationOutput = new VsCodeSetting(
'juvix-mode.compilationOutput'
);
Expand All @@ -199,16 +196,11 @@ export class JuvixConfig {

public getCompilationFlags(): string {
const target = this.compilationTarget.get();
const runtime = this.compilationRuntime.get();
const flags = [];
if (target) {
flags.push('--target');
flags.push(target);
}
if (runtime) {
flags.push('--runtime');
flags.push(runtime);
}
const outputFile = this.compilationOutput.get();
if (outputFile) {
flags.push('--output');
Expand Down

0 comments on commit 2a15f2e

Please sign in to comment.