diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f06fe513..e866f4cb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/src/support.rs b/src/support.rs index 51764d281..aa7ab19ed 100644 --- a/src/support.rs +++ b/src/support.rs @@ -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]); } }