Skip to content

Commit d3b3905

Browse files
authored
Merge pull request #51 from rust-osdev/fix-rustflags
Set empty RUSTFLAGS to ensure that no .cargo/config applies
2 parents 3462674 + 2ba0f81 commit d3b3905

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
image_name: 'ubuntu-16.04'
1717
rustup_toolchain: stable
1818
mac:
19-
image_name: 'macos-10.13'
19+
image_name: 'macOS-10.15'
2020
rustup_toolchain: stable
2121
windows:
2222
image_name: 'vs2017-win2016'
@@ -75,7 +75,7 @@ jobs:
7575
image_name: 'ubuntu-16.04'
7676
rustup_toolchain: nightly
7777
mac:
78-
image_name: 'macos-10.13'
78+
image_name: 'macos-10.15'
7979
rustup_toolchain: nightly
8080
windows:
8181
image_name: 'vs2017-win2016'

src/builder.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl Builder {
233233
cmd.arg("--release");
234234
cmd.env("KERNEL", kernel_bin_path);
235235
cmd.env("KERNEL_MANIFEST", &self.kernel_manifest_path);
236-
cmd.env_remove("RUSTFLAGS");
236+
cmd.env("RUSTFLAGS", "");
237237
cmd.env("XBUILD_SYSROOT_PATH", target_dir.join("bootloader-sysroot")); // for cargo-xbuild
238238
cmd
239239
};
@@ -477,10 +477,11 @@ impl fmt::Display for CreateBootimageError {
477477
"Could not find required key `{}` in cargo metadata output",
478478
key
479479
),
480-
CreateBootimageError::BootloaderNotFound => {
481-
writeln!(f, "Bootloader dependency not found\n\n\
482-
You need to add a dependency on a crate named `bootloader` in your Cargo.toml.")
483-
}
480+
CreateBootimageError::BootloaderNotFound => writeln!(
481+
f,
482+
"Bootloader dependency not found\n\n\
483+
You need to add a dependency on a crate named `bootloader` in your Cargo.toml."
484+
),
484485
CreateBootimageError::BootloaderInvalid(err) => writeln!(
485486
f,
486487
"The `bootloader` dependency has not the right format: {}",

0 commit comments

Comments
 (0)