openvmm_hcl/main.rs
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Root binary crate for builds of OpenVMM-HCL.
5
6#![forbid(unsafe_code)]
7
8// Link resources.
9#[cfg(target_os = "linux")]
10use openvmm_hcl_resources as _;
11
12#[cfg(not(target_os = "linux"))]
13fn main() {
14 unimplemented!("openvmm_hcl only runs on Linux");
15}
16
17#[cfg(target_os = "linux")]
18use underhill_entry::underhill_main as main;