b0bleet / zvisor Goto Github PK
View Code? Open in Web Editor NEWZig-based Hypervisor
License: MIT License
Zig-based Hypervisor
License: MIT License
Cool project!
Please let me know when block devices become supported for larger application payloads than what fits an initrd.
I'm getting a build error:
$ zig build
/home/sfisher/.dotfiles/asdf/.asdf/installs/zig/0.11.0/lib/std/Build/Step/Compile.zig:616:21: error: deprecated; use std.Build.installArtifact
pub const install = @compileError("deprecated; use std.Build.installArtifact");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
build: /home/sfisher/dev/zvisor/build.zig:31:8
runBuild__anon_7115: /home/sfisher/.dotfiles/asdf/.asdf/installs/zig/0.11.0/lib/std/Build.zig:1638:27
remaining reference traces hidden; use '-freference-trace' to see all reference traces
Which I've been able to get around by changing the build.zig
file:
const std = @import("std");
pub fn build(b: *std.Build) !void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const root_source_file = std.Build.FileSource.relative("src/main.zig");
// zvisor executable
const zvisor_step = b.step("zvisor", "Install zvisor executable");
const zvisor = b.addExecutable(.{
.name = "zvisor",
.root_source_file = root_source_file,
.target = target,
.optimize = optimize,
});
zvisor.linkSystemLibrary("c");
const zvisor_install = b.addInstallArtifact(zvisor, .{});
zvisor_step.dependOn(&zvisor_install.step);
b.default_step.dependOn(zvisor_step);
// Tests
const test_step = b.step("test", "Run tests");
const test_exe = b.addTest(.{
.root_source_file = root_source_file,
.optimize = optimize,
.target = target,
});
const test_run = b.addRunArtifact(test_exe);
test_run.step.dependOn(zvisor_step);
test_step.dependOn(&test_run.step);
b.default_step.dependOn(test_step);
}
However, after this point, lots of things are... unique... zig fmt src/*
fixes a few issues, but I'm unsure about others. Any help would be appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.