-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ethereum/develop
Variable Packeting in Solidity
- Loading branch information
Showing
10,011 changed files
with
311,640 additions
and
81,905 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
$ErrorActionPreference = "Stop" | ||
|
||
cd "$PSScriptRoot\.." | ||
|
||
if ("$Env:FORCE_RELEASE" -Or "$Env:CIRCLE_TAG") { | ||
New-Item prerelease.txt -type file | ||
Write-Host "Building release version." | ||
} | ||
else { | ||
# Use last commit date rather than build date to avoid ending up with builds for | ||
# different platforms having different version strings (and therefore producing different bytecode) | ||
# if the CI is triggered just before midnight. | ||
$last_commit_timestamp = git log -1 --date=unix --format=%cd HEAD | ||
$last_commit_date = (Get-Date -Date "1970-01-01 00:00:00Z").toUniversalTime().addSeconds($last_commit_timestamp).ToString("yyyy.M.d") | ||
-join("ci.", $last_commit_date) | out-file -encoding ascii prerelease.txt | ||
} | ||
|
||
mkdir build | ||
cd build | ||
$boost_dir=(Resolve-Path $PSScriptRoot\..\deps\boost\lib\cmake\Boost-*) | ||
..\deps\cmake\bin\cmake -G "Visual Studio 16 2019" -DBoost_DIR="$boost_dir\" -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_INSTALL_PREFIX="$PSScriptRoot\..\upload" .. | ||
if ( -not $? ) { throw "CMake configure failed." } | ||
msbuild solidity.sln /p:Configuration=Release /m:10 /v:minimal | ||
if ( -not $? ) { throw "Build failed." } | ||
..\deps\cmake\bin\cmake --build . -j 10 --target install --config Release | ||
if ( -not $? ) { throw "Install target failed." } |
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 @@ | ||
leak:*libcln* |
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,60 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
#------------------------------------------------------------------------------ | ||
# Compares bytecode reports generated by prepare_report.py/.js. | ||
# | ||
# ------------------------------------------------------------------------------ | ||
# This file is part of solidity. | ||
# | ||
# solidity is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# solidity is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with solidity. If not, see <http://www.gnu.org/licenses/> | ||
# | ||
# (c) 2023 solidity contributors. | ||
#------------------------------------------------------------------------------ | ||
|
||
no_cli_platforms=( | ||
emscripten | ||
) | ||
native_platforms=( | ||
ubuntu2004-static | ||
ubuntu | ||
osx | ||
osx_intel | ||
windows | ||
) | ||
interfaces=( | ||
cli | ||
standard-json | ||
) | ||
|
||
for preset in "$@"; do | ||
report_files=() | ||
for platform in "${no_cli_platforms[@]}"; do | ||
report_files+=("bytecode-report-${platform}-${preset}.txt") | ||
done | ||
for platform in "${native_platforms[@]}"; do | ||
for interface in "${interfaces[@]}"; do | ||
report_files+=("bytecode-report-${platform}-${interface}-${preset}.txt") | ||
done | ||
done | ||
|
||
echo "Reports to compare:" | ||
printf -- "- %s\n" "${report_files[@]}" | ||
|
||
if ! diff --brief --report-identical-files --from-file "${report_files[@]}"; then | ||
diff --unified=0 --report-identical-files --from-file "${report_files[@]}" | head --lines 50 | ||
zip "bytecode-reports-${preset}.zip" "${report_files[@]}" | ||
exit 1 | ||
fi | ||
done |
Oops, something went wrong.