Skip to content

Commit

Permalink
Merge branch 'main' into cl/fix-llvm-build-new-clang
Browse files Browse the repository at this point in the history
  • Loading branch information
xermicus authored Feb 4, 2025
2 parents 65d0ead + ba7310f commit 7b975bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This is a development pre-release.
- Missing the `--overwrite` flag emits an error instead of a warning.
- The `resolc` executable prints the help by default.
- Removed support for legacy EVM assembly (EVMLA) translation.
- integration: identify cached code blobs on source code to fix potential confusions.

### Fixed
- Solidity: Add the solc `--libraries` files to sources.
Expand Down
3 changes: 3 additions & 0 deletions crates/solidity/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const DEBUG_CONFIG: revive_llvm_context::DebugConfig =
#[derive(Hash, PartialEq, Eq)]
struct CachedBlob {
contract_name: String,
solidity: String,
solc_optimizer_enabled: bool,
}

Expand Down Expand Up @@ -280,6 +281,7 @@ fn compile_evm(
) -> Vec<u8> {
let id = CachedBlob {
contract_name: contract_name.to_owned(),
solidity: source_code.to_owned(),
solc_optimizer_enabled,
};

Expand Down Expand Up @@ -323,6 +325,7 @@ pub fn compile_blob_with_options(
) -> Vec<u8> {
let id = CachedBlob {
contract_name: contract_name.to_owned(),
solidity: source_code.to_owned(),
solc_optimizer_enabled,
};

Expand Down

0 comments on commit 7b975bc

Please sign in to comment.