Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
);
}

#[cfg(not(docsrs_dummy_build))]

Check warning on line 65 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 65 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 65 in build.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 65 in build.rs

View workflow job for this annotation

GitHub Actions / Test (macos-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 65 in build.rs

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 65 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 65 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 65 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`
#[cfg(feature = "uefi")]
fn build_uefi_bootloader() -> PathBuf {
let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());
Expand All @@ -74,6 +74,7 @@
cmd.arg("--path").arg("uefi");
println!("cargo:rerun-if-changed=uefi");
println!("cargo:rerun-if-changed=common");
cmd.arg("--target-dir").arg("target/uefi_target");
} else {
cmd.arg("--version").arg(BOOTLOADER_VERSION);
}
Expand All @@ -82,6 +83,7 @@
cmd.arg("-Zbuild-std=core")
.arg("-Zbuild-std-features=compiler-builtins-mem");
cmd.arg("--root").arg(&out_dir);
cmd.arg("-vv");
cmd.env_remove("RUSTFLAGS");
cmd.env_remove("CARGO_ENCODED_RUSTFLAGS");
let status = cmd
Expand All @@ -101,7 +103,7 @@

// dummy implementation because docsrs builds have no network access.
// This will put an empty file in out_dir and return its path.
#[cfg(docsrs_dummy_build)]

Check warning on line 106 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 106 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 106 in build.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 106 in build.rs

View workflow job for this annotation

GitHub Actions / Test (macos-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 106 in build.rs

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 106 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 106 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 106 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`
#[cfg(feature = "uefi")]
fn build_uefi_bootloader() -> PathBuf {
use std::fs::File;
Expand All @@ -120,7 +122,7 @@
path
}

#[cfg(not(docsrs_dummy_build))]

Check warning on line 125 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 125 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 125 in build.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 125 in build.rs

View workflow job for this annotation

GitHub Actions / Test (macos-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 125 in build.rs

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 125 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 125 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 125 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`
#[cfg(feature = "bios")]
fn build_bios_boot_sector() -> PathBuf {
let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());
Expand Down Expand Up @@ -166,7 +168,7 @@

// dummy implementation because docsrs builds have no network access.
// This will put an empty file in out_dir and return its path.
#[cfg(docsrs_dummy_build)]

Check warning on line 171 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 171 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 171 in build.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 171 in build.rs

View workflow job for this annotation

GitHub Actions / Test (macos-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 171 in build.rs

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 171 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 171 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 171 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`
#[cfg(feature = "bios")]
fn build_bios_boot_sector() -> PathBuf {
use std::fs::File;
Expand All @@ -185,7 +187,7 @@
path
}

#[cfg(not(docsrs_dummy_build))]

Check warning on line 190 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 190 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 190 in build.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 190 in build.rs

View workflow job for this annotation

GitHub Actions / Test (macos-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 190 in build.rs

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 190 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 190 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 190 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`
#[cfg(feature = "bios")]
fn build_bios_stage_2() -> PathBuf {
let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());
Expand Down Expand Up @@ -233,7 +235,7 @@

// dummy implementation because docsrs builds have no network access.
// This will put an empty file in out_dir and return its path.
#[cfg(docsrs_dummy_build)]

Check warning on line 238 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 238 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 238 in build.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 238 in build.rs

View workflow job for this annotation

GitHub Actions / Test (macos-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 238 in build.rs

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 238 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 238 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 238 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`
#[cfg(feature = "bios")]
fn build_bios_stage_2() -> PathBuf {
use std::fs::File;
Expand All @@ -252,7 +254,7 @@
path
}

#[cfg(not(docsrs_dummy_build))]

Check warning on line 257 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 257 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 257 in build.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 257 in build.rs

View workflow job for this annotation

GitHub Actions / Test (macos-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 257 in build.rs

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 257 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 257 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 257 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`
#[cfg(feature = "bios")]
fn build_bios_stage_3() -> PathBuf {
let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());
Expand Down Expand Up @@ -296,7 +298,7 @@

// dummy implementation because docsrs builds have no network access.
// This will put an empty file in out_dir and return its path.
#[cfg(docsrs_dummy_build)]

Check warning on line 301 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 301 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 301 in build.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 301 in build.rs

View workflow job for this annotation

GitHub Actions / Test (macos-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 301 in build.rs

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 301 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 301 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 301 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`
#[cfg(feature = "bios")]
fn build_bios_stage_3() -> PathBuf {
use std::fs::File;
Expand All @@ -315,7 +317,7 @@
path
}

#[cfg(not(docsrs_dummy_build))]

Check warning on line 320 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 320 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 320 in build.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 320 in build.rs

View workflow job for this annotation

GitHub Actions / Test (macos-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 320 in build.rs

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 320 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 320 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 320 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`
#[cfg(feature = "bios")]
fn build_bios_stage_4() -> PathBuf {
let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());
Expand Down Expand Up @@ -360,7 +362,7 @@

// dummy implementation because docsrs builds have no network access.
// This will put an empty file in out_dir and return its path.
#[cfg(docsrs_dummy_build)]

Check warning on line 365 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 365 in build.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 365 in build.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 365 in build.rs

View workflow job for this annotation

GitHub Actions / Test (macos-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 365 in build.rs

View workflow job for this annotation

GitHub Actions / Test (windows-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 365 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 365 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`

Check warning on line 365 in build.rs

View workflow job for this annotation

GitHub Actions / Test (ubuntu-latest)

unexpected `cfg` condition name: `docsrs_dummy_build`
#[cfg(feature = "bios")]
fn build_bios_stage_4() -> PathBuf {
use std::fs::File;
Expand Down
Loading