Fix dir check Win32 CI

This commit is contained in:
Christoffer Lerno
2025-07-28 23:23:09 +02:00
parent 6641155892
commit d8daa4ac83
2 changed files with 5 additions and 10 deletions

View File

@@ -53,9 +53,9 @@ jobs:
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
cd resources/testproject
..\..\build\${{ matrix.build_type }}\c3c.exe -vvv --emit-llvm run hello_world_win32 --trust=full
dir build\llvm\windows-x64
dir out\llvm\windows-x64
..\..\build\${{ matrix.build_type }}\c3c.exe clean
dir build\llvm\windows-x64
dir out\llvm\windows-x64
- name: Build testproject lib

View File

@@ -479,20 +479,15 @@ void compiler_compile(void)
void **gen_contexts;
void (*task)(void *);
if (compiler.build.asm_file_dir || compiler.build.ir_file_dir || compiler.build.emit_object_files)
{
create_output_dir(compiler.build.build_dir);
}
if (compiler.build.ir_file_dir && (compiler.build.emit_llvm || compiler.build.test_output || compiler.build.lsp_output))
if ((compiler.build.emit_llvm || compiler.build.test_output || compiler.build.lsp_output))
{
create_output_dir(compiler.build.ir_file_dir);
}
if (compiler.build.asm_file_dir && compiler.build.emit_asm)
if (compiler.build.emit_asm)
{
create_output_dir(compiler.build.asm_file_dir);
}
if (compiler.build.object_file_dir && compiler.build.emit_object_files)
if (compiler.build.emit_object_files)
{
create_output_dir(compiler.build.object_file_dir);
}