-
Notifications
You must be signed in to change notification settings - Fork 4
Remove build_sysroot
folder
#2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
97cb210
to
f191ca0
Compare
@@ -116,17 +89,11 @@ fn prepare_libcore( | |||
patches.sort(); | |||
for file_path in patches { | |||
println!("[GIT] apply `{}`", file_path.display()); | |||
let path = Path::new("../..").join(file_path); | |||
let path = Path::new("../../..").join(file_path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be clearer to use an absolute path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard to say...
build_system/src/test.rs
Outdated
] | ||
.iter() | ||
.any(|check| line.contains(check)) | ||
if ["//@ error-pattern:", "//@ build-fail", "//@ run-fail", "-Cllvm-args", "//~", "thread"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to keep the original formatting, so please use #[rustfmt::skip]
or whatever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me.
The CI failed, possible because you would need to adjust the |
b191cc7
to
bfed583
Compare
.github/workflows/release.yml
Outdated
@@ -63,7 +63,7 @@ jobs: | |||
git config --global user.name "User" | |||
./y.sh prepare | |||
# FIXME(antoyo): we cannot enable LTO for stdarch tests currently because of some failing LTO tests using proc-macros. | |||
echo -n 'lto = "fat"' >> build_sysroot/Cargo.toml | |||
echo -n 'lto = "fat"' >> build/build_sysroot/Cargo.toml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could the CI failure due to the fact that this change is overwritten by the fact that you now copy this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum indeed.
d8156a6
to
f863069
Compare
.github/workflows/stdarch.yml
Outdated
cd build_sysroot/sysroot_src/library/stdarch/ | ||
CHANNEL=release TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ../../../../y.sh cargo test | ||
cd build/build_sysroot/sysroot_src/library/stdarch/ | ||
CHANNEL=release TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ../../../../../y.sh cargo test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is starting to have many ../
. Would it work to use --manifest-path
instead (without changing directory)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's worth a try.
x if runners.contains_key(x) => { | ||
test_arg.runners.insert(x.into()); | ||
x if runners.contains_key(x) | ||
&& !test_arg.runners.iter().any(|runner| runner == x) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&& !test_arg.runners.iter().any(|runner| runner == x) => | |
&& !test_arg.runners.contains(x) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's what I did first, but:
error[E0308]: mismatched types
--> src/test.rs:131:51
|
131 | && !test_arg.runners.contains(x) =>
| -------- ^ expected `&String`, found `&str`
| |
| arguments to this method are incorrect
|
= note: expected reference `&std::string::String`
found reference `&str`
f8d21b2
to
07e9497
Compare
07e9497
to
da070d3
Compare
Thanks for your contribution. |
With this, the top-level directory is finally clean.