1
0

fix: fix github action build error

This commit is contained in:
2026-02-03 16:47:23 +08:00
parent 37904fd5a4
commit 4985c6d3d0
11 changed files with 30 additions and 20 deletions

View File

@@ -1,10 +1,22 @@
#include "UnvirtContext.hpp"
#include <yycc.hpp>
#include <yycc/carton/ironpad.hpp>
int main(int argc, char* argv[]) {
// register exception handler if we are in Windows.
#if defined(LIBCMO_BUILD_RELEASE) && defined(YYCC_OS_WINDOWS)
yycc::carton::ironpad::startup();
#endif
// run core
Unvirt::Context::UnvirtContext ctx;
ctx.Run();
// unregister exception handler if we are in Windows
#if defined(LIBCMO_BUILD_RELEASE) && defined(YYCC_OS_WINDOWS)
yycc::carton::ironpad::shutdown();
#endif
return 0;
}

View File

@@ -1,6 +1,7 @@
#include "Utils.hpp"
#include <yycc/num/op.hpp>
#include <stdexcept>
#include <algorithm>
namespace Unvirt::Utils {

View File

@@ -1,5 +1,7 @@
#pragma once
#include <yycc.hpp>
#include <yycc/macro/class_copy_move.hpp>
#include <cstddef>
namespace Unvirt::Utils {