-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): add option to build specific dir (#8149)
* feat(build): add option to build specific dir * Changes after review: - use source_files_iter helper, build single files and child dirs as well - rename arg to paths, use 0.. pos arg * Changes after review: reuse MultiCompilerLanguage::FILE_EXTENSIONS
- Loading branch information
Showing
6 changed files
with
91 additions
and
1 deletion.
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
3 changes: 3 additions & 0 deletions
3
crates/forge/tests/fixtures/can_build_path_with_one_file.stdout
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,3 @@ | ||
Compiling 1 files with 0.8.23 | ||
Solc 0.8.23 finished in 33.25ms | ||
Compiler run successful! |
3 changes: 3 additions & 0 deletions
3
crates/forge/tests/fixtures/can_build_path_with_three_files.stdout
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,3 @@ | ||
Compiling 3 files with 0.8.23 | ||
Solc 0.8.23 finished in 33.25ms | ||
Compiler run successful! |
3 changes: 3 additions & 0 deletions
3
crates/forge/tests/fixtures/can_build_path_with_two_files.stdout
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,3 @@ | ||
Compiling 2 files with 0.8.23 | ||
Solc 0.8.23 finished in 33.25ms | ||
Compiler run successful! |