Skip to content

Commit

Permalink
Merge pull request #51 from rust-osdev/fix-rustflags
Browse files Browse the repository at this point in the history
Set empty RUSTFLAGS to ensure that no .cargo/config applies
  • Loading branch information
phil-opp committed Apr 1, 2020
2 parents 3462674 + 2ba0f81 commit d3b3905
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
image_name: 'ubuntu-16.04'
rustup_toolchain: stable
mac:
image_name: 'macos-10.13'
image_name: 'macOS-10.15'
rustup_toolchain: stable
windows:
image_name: 'vs2017-win2016'
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
image_name: 'ubuntu-16.04'
rustup_toolchain: nightly
mac:
image_name: 'macos-10.13'
image_name: 'macos-10.15'
rustup_toolchain: nightly
windows:
image_name: 'vs2017-win2016'
Expand Down
11 changes: 6 additions & 5 deletions src/builder.rs
Expand Up @@ -233,7 +233,7 @@ impl Builder {
cmd.arg("--release");
cmd.env("KERNEL", kernel_bin_path);
cmd.env("KERNEL_MANIFEST", &self.kernel_manifest_path);
cmd.env_remove("RUSTFLAGS");
cmd.env("RUSTFLAGS", "");
cmd.env("XBUILD_SYSROOT_PATH", target_dir.join("bootloader-sysroot")); // for cargo-xbuild
cmd
};
Expand Down Expand Up @@ -477,10 +477,11 @@ impl fmt::Display for CreateBootimageError {
"Could not find required key `{}` in cargo metadata output",
key
),
CreateBootimageError::BootloaderNotFound => {
writeln!(f, "Bootloader dependency not found\n\n\
You need to add a dependency on a crate named `bootloader` in your Cargo.toml.")
}
CreateBootimageError::BootloaderNotFound => writeln!(
f,
"Bootloader dependency not found\n\n\
You need to add a dependency on a crate named `bootloader` in your Cargo.toml."
),
CreateBootimageError::BootloaderInvalid(err) => writeln!(
f,
"The `bootloader` dependency has not the right format: {}",
Expand Down

0 comments on commit d3b3905

Please sign in to comment.