Small changes

This commit is contained in:
Pasha Bibko
2025-05-04 20:12:44 +01:00
parent f88c1e0455
commit a16ce34c8b
6 changed files with 97 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
using System;
using System.Diagnostics;
using System.ComponentModel;
namespace LX_Build
{
@@ -45,7 +45,13 @@ namespace LX_Build
LX_API.Init();
// Generates LLVM IR with the example files //
_ = LX_API.GenIR("example/main.lx", "example/main.ll", "example/log");
int genExitCode = LX_API.GenIR("example/main.lx", "example/main.ll", "example/log");
if (genExitCode != 0)
{
Console.WriteLine("An error occured whilst generating LLVM IR");
Console.WriteLine($"Error code: {genExitCode}");
return;
}
// Compilers the LLVM IR to an object file using the command line //
CompileToObj("example/main.ll", "example/main.obj");

View File

@@ -2,7 +2,8 @@
"profiles": {
"LX-Build": {
"commandName": "Project",
"workingDirectory": "$(SolutionDir)"
"workingDirectory": "$(SolutionDir)",
"nativeDebugging": true
}
}
}