Skip to content

Commit

Permalink
Actually fix handling of target flag (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMayes committed May 29, 2024
1 parent 1fafdee commit 4d2cd0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### Fixed
- Fixed linking to `libclang` on Windows with MSYS2
- Fixed `Clang::find` to support both the `-target` and `--target` arguments
when using target-prefixed `clang` binaries

## [1.8.1] - 2024-05-28

Expand All @@ -25,8 +27,6 @@
### Fixed
- Fixed handling of paths that contain characters that have special meaning in
glob patterns (e.g., `[` or `]`)
- Fixed `Clang::find` to support both the `-target` and `--target` arguments
when using target-prefixed `clang` binaries

## [1.7.0] - 2023-12-31

Expand Down
2 changes: 1 addition & 1 deletion src/support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl Clang {

let mut target = None;
for i in 0..args.len() {
if (args[i] == "-target" || args[i] == "-target") && i + 1 < args.len() {
if (args[i] == "-target" || args[i] == "--target") && i + 1 < args.len() {
target = Some(&args[i + 1]);
}
}
Expand Down

0 comments on commit 4d2cd0f

Please sign in to comment.