fix(solc): add missing ir option (#2055)
This commit is contained in:
parent
10b18e0d58
commit
5330a688ea
|
@ -503,6 +503,7 @@ impl ExtraOutputValues {
|
||||||
pub struct ExtraOutputFiles {
|
pub struct ExtraOutputFiles {
|
||||||
pub abi: bool,
|
pub abi: bool,
|
||||||
pub metadata: bool,
|
pub metadata: bool,
|
||||||
|
pub ir: bool,
|
||||||
pub ir_optimized: bool,
|
pub ir_optimized: bool,
|
||||||
pub ewasm: bool,
|
pub ewasm: bool,
|
||||||
pub assembly: bool,
|
pub assembly: bool,
|
||||||
|
@ -530,6 +531,7 @@ impl ExtraOutputFiles {
|
||||||
Self {
|
Self {
|
||||||
abi: true,
|
abi: true,
|
||||||
metadata: true,
|
metadata: true,
|
||||||
|
ir: true,
|
||||||
ir_optimized: true,
|
ir_optimized: true,
|
||||||
ewasm: true,
|
ewasm: true,
|
||||||
assembly: true,
|
assembly: true,
|
||||||
|
@ -552,6 +554,9 @@ impl ExtraOutputFiles {
|
||||||
ContractOutputSelection::Metadata => {
|
ContractOutputSelection::Metadata => {
|
||||||
config.metadata = true;
|
config.metadata = true;
|
||||||
}
|
}
|
||||||
|
ContractOutputSelection::Ir => {
|
||||||
|
config.ir = true;
|
||||||
|
}
|
||||||
ContractOutputSelection::IrOptimized => {
|
ContractOutputSelection::IrOptimized => {
|
||||||
config.ir_optimized = true;
|
config.ir_optimized = true;
|
||||||
}
|
}
|
||||||
|
@ -606,7 +611,7 @@ impl ExtraOutputFiles {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.ewasm {
|
if self.ir {
|
||||||
if let Some(ref ir) = contract.ir {
|
if let Some(ref ir) = contract.ir {
|
||||||
let file = file.with_extension("ir");
|
let file = file.with_extension("ir");
|
||||||
fs::write(&file, ir).map_err(|err| SolcError::io(err, file))?
|
fs::write(&file, ir).map_err(|err| SolcError::io(err, file))?
|
||||||
|
|
Loading…
Reference in New Issue