-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix slow compilation with
via-ir
(#217)
* refactor: change stdChains to a mapping * ci: add a test contract to compile Test in CI * fix: no more stack too deep (once foundry-rs/foundry#3659 is merged) * ci: more granular build results * fix: add ABIEncoderV2 pragma to compilation test * refactor: cleanup code, more compilation tests * build: add view modifiers to silence compiler warnings * ci/refactor: more via-ir benchmarks, now in test dir * chore: udpate chain names * chore: fix test name * ci: reorder checks, add 0.6.12
- Loading branch information
Showing
10 changed files
with
138 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.6.2 <0.9.0; | ||
|
||
pragma experimental ABIEncoderV2; | ||
|
||
import "../../src/Script.sol"; | ||
|
||
// The purpose of this contract is to benchmark compilation time to avoid accidentally introducing | ||
// a change that results in very long compilation times with via-ir. See https://github.com/foundry-rs/forge-std/issues/207 | ||
contract CompilationScript is Script {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.6.2 <0.9.0; | ||
|
||
pragma experimental ABIEncoderV2; | ||
|
||
import "../../src/Script.sol"; | ||
|
||
// The purpose of this contract is to benchmark compilation time to avoid accidentally introducing | ||
// a change that results in very long compilation times with via-ir. See https://github.com/foundry-rs/forge-std/issues/207 | ||
contract CompilationScriptBase is ScriptBase {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.6.2 <0.9.0; | ||
|
||
pragma experimental ABIEncoderV2; | ||
|
||
import "../../src/Test.sol"; | ||
|
||
// The purpose of this contract is to benchmark compilation time to avoid accidentally introducing | ||
// a change that results in very long compilation times with via-ir. See https://github.com/foundry-rs/forge-std/issues/207 | ||
contract CompilationTest is Test {} |
Oops, something went wrong.