diff --git a/src/Otterkit.cs b/src/Otterkit.cs index 0898a93..3b10ce8 100644 --- a/src/Otterkit.cs +++ b/src/Otterkit.cs @@ -222,6 +222,7 @@ private static void OtterkitMain() if (CompilerOptions.Mode is BuildType.BuildOnly) { + Directory.CreateDirectory(".otterkit/Artifacts"); CodeGenerator.Generate(CompilerContext.SourceTokens, CompilerOptions.Main); Directory.CreateDirectory(".otterkit/Build"); @@ -230,8 +231,10 @@ private static void OtterkitMain() if (CompilerOptions.Mode is BuildType.BuildAndRun) { + Directory.CreateDirectory(".otterkit/Artifacts"); CodeGenerator.Generate(CompilerContext.SourceTokens, CompilerOptions.Main); + CallDotnetCompiler("build"); Directory.CreateDirectory(".otterkit/Build"); CallDotnetCompiler("run"); }