Make native version to compaile again

This commit is contained in:
Sebastian Miasojed
2024-11-07 15:04:35 +01:00
parent 9b23e19479
commit 4f6debcbe3
17 changed files with 119 additions and 373 deletions
+2 -3
View File
@@ -2,8 +2,7 @@
use serde::{Deserialize, Serialize};
use crate::solc::version::Version as SolcVersion;
use crate::solc::Compiler as SolcCompiler;
use crate::compiler::version::Version as SolcVersion;
/// The Solidity compiler pipeline type.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
@@ -19,7 +18,7 @@ pub enum Pipeline {
impl Pipeline {
/// We always use EVMLA for Solidity <=0.7, or if the user does not want to compile via Yul.
pub fn new(solc_version: &SolcVersion, force_evmla: bool) -> Self {
if solc_version.default < compiler::FIRST_YUL_VERSION || force_evmla {
if solc_version.default < crate::compiler::FIRST_YUL_VERSION || force_evmla {
Self::EVMLA
} else {
Self::Yul