Skip to content
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

Rollup of 9 pull requests #134057

Closed
wants to merge 24 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
529aae6
wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next
osiewicz Nov 18, 2024
692c19a
Refactor ReadDir into a state machine
osiewicz Nov 26, 2024
f4ab982
chore: Improve doc comments
osiewicz Nov 26, 2024
18f8657
Pass -bnoipath when adding rust upstream dynamic crates
Aug 9, 2024
1ae1f8c
Clarify comment
daltenty Dec 6, 2024
3109f07
Replace sa_sigaction with sa_union.__su_sigaction for AIX.
xingxue-ibm Dec 6, 2024
ab2ee7a
Use option "-sf" for the AIX "ln" command.
xingxue-ibm Dec 6, 2024
f884f18
Move tests for `-l` and `#[link(..)]` into `tests/ui/link-native-libs`
Zalathar Dec 7, 2024
0a48b96
Move more tests into `tests/ui/link-native-libs`
Zalathar Dec 7, 2024
88669ae
Don't use AsyncFnOnce::CallOnceFuture bounds for signature deduction
compiler-errors Dec 7, 2024
c4d7f1d
implement `TargetSelection::is_cygwin` function
onur-ozkan Dec 8, 2024
d3b5340
handle cygwin environments in `install::sanitize_sh`
onur-ozkan Dec 8, 2024
5e66869
Pass the arch rather than full target name to windows_registry::find_…
bjorn3 Dec 6, 2024
999aed4
Add URL to test cases
notriddle Dec 9, 2024
b531854
rustdoc: rename `issue-\d+.rs` tests to have meaningful names
notriddle Dec 9, 2024
7554a8a
Rollup merge of #133184 - osiewicz:wasm-fix-infinite-loop-in-remove-d…
GuillaumeGomez Dec 9, 2024
9cccfc1
Rollup merge of #133955 - bjorn3:cc_pass_arch_only, r=ChrisDenton
GuillaumeGomez Dec 9, 2024
88ddf00
Rollup merge of #133967 - daltenty:daltenty/bnoipath, r=jieyouxu
GuillaumeGomez Dec 9, 2024
66c3b19
Rollup merge of #133970 - xingxue-ibm:sigaction, r=nnethercote
GuillaumeGomez Dec 9, 2024
a061eb1
Rollup merge of #133980 - xingxue-ibm:ln-option-aix, r=jieyouxu
GuillaumeGomez Dec 9, 2024
9857c85
Rollup merge of #133996 - Zalathar:ui-link-native-libs, r=jieyouxu
GuillaumeGomez Dec 9, 2024
8aae532
Rollup merge of #134017 - compiler-errors:call-once-deduction, r=jiey…
GuillaumeGomez Dec 9, 2024
5240cc1
Rollup merge of #134023 - onur-ozkan:132507, r=jieyouxu
GuillaumeGomez Dec 9, 2024
0a7c477
Rollup merge of #134053 - notriddle:notriddle/issue-d, r=GuillaumeGomez
GuillaumeGomez Dec 9, 2024
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
Prev Previous commit
Next Next commit
implement TargetSelection::is_cygwin function
Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed Dec 8, 2024
commit c4d7f1d29f05e9655e3827529ba4da3438e3e1fb
6 changes: 6 additions & 0 deletions src/bootstrap/src/core/config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,12 @@ impl TargetSelection {
self.ends_with("windows-gnu")
}

pub fn is_cygwin(&self) -> bool {
self.is_windows() &&
// ref. https://cygwin.com/pipermail/cygwin/2022-February/250802.html
env::var("OSTYPE").is_ok_and(|v| v.to_lowercase().contains("cygwin"))
}

/// Path to the file defining the custom target, if any.
pub fn filepath(&self) -> Option<&Path> {
self.file.as_ref().map(Path::new)
Expand Down