Skip to content

Commit

Permalink
Update LLVM (#398)
Browse files Browse the repository at this point in the history
* feat: Update LLVM

* fix: Clippy warning

* docs: Update changelog
  • Loading branch information
SergioGasquez authored Nov 23, 2023
1 parent 66db3ba commit 375129f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `skip-version-parse` argument should require `toolchain-version` (#396)

### Changed
- Update LLVM version to `esp-16.0.4-20231113` (#398)

### Removed

Expand Down
12 changes: 11 additions & 1 deletion src/toolchain/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ use tokio::fs::remove_dir_all;

const DEFAULT_LLVM_REPOSITORY: &str = "https://github.com/espressif/llvm-project/releases/download";
const DEFAULT_LLVM_15_VERSION: &str = "esp-15.0.0-20221201";
const DEFAULT_LLVM_16_VERSION: &str = "esp-16.0.0-20230516";
#[cfg(windows)]
const OLD_LLVM_16_VERSION: &str = "esp-16.0.0-20230516";
const DEFAULT_LLVM_16_VERSION: &str = "esp-16.0.4-20231113";
pub const CLANG_NAME: &str = "xtensa-esp32-elf-clang";

#[derive(Debug, Clone, Default)]
Expand Down Expand Up @@ -136,6 +138,14 @@ impl Llvm {
),
"",
);
updated_path = updated_path.replace(
&format!(
"{}\\{}\\esp-clang\\bin;",
llvm_path.display().to_string().replace('/', "\\"),
OLD_LLVM_16_VERSION,
),
"",
);
updated_path = updated_path.replace(
&format!(
"{}\\{}\\esp-clang\\bin;",
Expand Down

0 comments on commit 375129f

Please sign in to comment.