-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add-addr-guards
- Loading branch information
Showing
52 changed files
with
1,127 additions
and
873 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package=solc | ||
$(package)_version=0.8.20 | ||
$(package)_download_path=https://github.com/ethereum/solidity/releases/download/v$($(package)_version)/ | ||
|
||
# NOTE: solc gets invoked on the BUILD OS during compile. So, we don't | ||
# care about HOST OS, unlike all other dependencies. | ||
# That is: solc is run on the BUILD OS, not targeted to run on the | ||
# HOST OS. | ||
|
||
ifeq ($(build_os)-$(build_arch),linux-x86_64) | ||
$(package)_file_name=solc-static-linux | ||
$(package)_sha256_hash=0479d44fdf9c501c25337fdc540419f1593b884a87b47f023da4f1c700fda782 | ||
endif | ||
|
||
# Note: solc only provides binaries for darwin amd64, however since rosetta is | ||
# expected to be present, this should work through emulation without additional config. | ||
ifeq ($(build_os),darwin) | ||
$(package)_file_name=solc-macos | ||
$(package)_sha256_hash=fc329945e0068e4e955d0a7b583776dc8d25e72ab657a044618a7ce7dd0519aa | ||
endif | ||
|
||
ifeq ($($(package)_file_name),) | ||
$(error Unsupported build platform: $(BUILD)) | ||
endif | ||
|
||
define $(package)_extract_cmds | ||
mkdir -p $$($(package)_extract_dir) && \ | ||
echo "$$($(package)_sha256_hash) $$($(package)_source)" > $$($(package)_extract_dir)/.$$($(package)_file_name).hash && \ | ||
$(build_SHA256SUM) -c $$($(package)_extract_dir)/.$$($(package)_file_name).hash | ||
endef | ||
|
||
define $(package)_set_vars | ||
$(package)_ROOT="$($(package)_staging_dir)/$(host_prefix)/bin" | ||
endef | ||
|
||
define $(package)_build_cmds | ||
mkdir -p $($(package)_ROOT) && \ | ||
cp $($(package)_source) $($(package)_ROOT)/$(package) && \ | ||
chmod +x $($(package)_ROOT)/$(package) | ||
endef |
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
Oops, something went wrong.