-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# v0.2.1: Rio ## Added - The Anchor IDL data structure is now generated for every Solana contract, although the actual IDL json file is not yet saved. [LucasSte](https://github.com/LucasSte) ## Changed - The Solana target now utilizes eight byte Anchor discriminators for function dispatch instead of the four byte Ethereum selectors. [LucasSte](https://github.com/LucasSte) - The deployment of contracts on Solana now follows the same scheme as Anchor. [seanyoung](https://github.com/seanyoung) - Compares between rational literals and integers are not allowed. [seanyoung](https://github.com/seanyoung) - Overriding the function selector value is now done using the `@selector([1, 2, 3, 4])` syntax, and the old syntax `selector=hex"12345678"` has been removed. - `msg.sender` was not implemented correctly on Solana, and [has now been removed](https://solang.readthedocs.io/en/latest/targets/solana.html#msg-sender-solana). [seanyoung](https://github.com/seanyoung) - Solang now uses LLVM 14. [LucasSte](https://github.com/LucasSte) ## Fixed - Many bugs have been fixed by [seanyoung](https://github.com/seanyoung), [LucasSte](https://github.com/LucasSte) and [xermicus](https://github.com/xermicus) Signed-off-by: Lucas Steuernagel <[email protected]>
- Loading branch information
Showing
11 changed files
with
121 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,27 +14,27 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git | ||
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git | ||
- name: Install Ninja | ||
uses: llvm/actions/install-ninja@main | ||
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off | ||
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off | ||
-DLLVM_ENABLE_PROJECTS='clang;lld' | ||
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF' | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm | ||
working-directory: ./llvm-project/ | ||
- run: cmake --build . --target install | ||
working-directory: ./llvm-project/ | ||
- run: tar Jcf ./llvm13.0-linux-x86-64.tar.xz ./llvm13.0/ | ||
- run: tar Jcf ./llvm14.0-linux-x86-64.tar.xz ./llvm14.0/ | ||
- name: Upload llvm | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: llvm13.0-linux-x86-64.tar.xz | ||
asset_name: llvm13.0-linux-x86-64.tar.xz | ||
file: llvm14.0-linux-x86-64.tar.xz | ||
asset_name: llvm14.0-linux-x86-64.tar.xz | ||
tag: ${{ github.ref }} | ||
- name: Add LLVM to Path | ||
run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH | ||
run: echo "$(pwd)/llvm14.0/bin" >> $GITHUB_PATH | ||
- name: Rust stable | ||
run: rustup default 1.63.0 | ||
- name: Build | ||
|
@@ -58,26 +58,26 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git | ||
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git | ||
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off | ||
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off | ||
-DLLVM_ENABLE_PROJECTS='clang;lld' | ||
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF' | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm | ||
working-directory: ./llvm-project/ | ||
- run: cmake --build . --target install | ||
working-directory: ./llvm-project/ | ||
# compression takes a long time on linux-arm64, use multithreaded compression | ||
- run: tar cf ./llvm13.0-linux-arm64.tar.xz -I 'xz -T 0' ./llvm13.0/ | ||
- run: tar cf ./llvm14.0-linux-arm64.tar.xz -I 'xz -T 0' ./llvm14.0/ | ||
- name: Upload llvm | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: llvm13.0-linux-arm64.tar.xz | ||
asset_name: llvm13.0-linux-arm64.tar.xz | ||
file: llvm14.0-linux-arm64.tar.xz | ||
asset_name: llvm14.0-linux-arm64.tar.xz | ||
tag: ${{ github.ref }} | ||
- name: Add LLVM to Path | ||
run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH | ||
run: echo "$(pwd)/llvm14.0/bin" >> $GITHUB_PATH | ||
- name: Rust stable | ||
run: rustup default 1.63.0 | ||
- name: Build | ||
|
@@ -101,7 +101,7 @@ jobs: | |
with: | ||
submodules: recursive | ||
- uses: dtolnay/[email protected] | ||
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git | ||
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git | ||
# We may not have enough space to compile llvm, see https://github.com/actions/virtual-environments/issues/326 | ||
working-directory: C:\ | ||
- name: Setup Windows | ||
|
@@ -113,20 +113,20 @@ jobs: | |
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off | ||
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off | ||
'-DLLVM_ENABLE_PROJECTS=clang;lld' | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=C:/llvm13.0 llvm | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=C:/llvm14.0 llvm | ||
working-directory: C:\llvm-project | ||
- run: cmake --build . --target install | ||
working-directory: C:\llvm-project | ||
- run: Compress-Archive -Path C:\llvm13.0 -DestinationPath C:\llvm13.0-win.zip | ||
- run: Compress-Archive -Path C:\llvm14.0 -DestinationPath C:\llvm14.0-win.zip | ||
- name: Upload llvm | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: C:\llvm13.0-win.zip | ||
asset_name: llvm13.0-win.zip | ||
file: C:\llvm14.0-win.zip | ||
asset_name: llvm14.0-win.zip | ||
tag: ${{ github.ref }} | ||
- name: Add LLVM to Path | ||
run: echo "c:\llvm13.0\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 | ||
run: echo "c:\llvm14.0\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 | ||
- name: Build | ||
run: cargo build --release --verbose | ||
- name: Run tests | ||
|
@@ -149,27 +149,27 @@ jobs: | |
with: | ||
submodules: recursive | ||
- uses: dtolnay/[email protected] | ||
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git | ||
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git | ||
- name: Install Ninja | ||
uses: llvm/actions/install-ninja@main | ||
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off | ||
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off | ||
-DLLVM_ENABLE_PROJECTS='clang;lld' | ||
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF' | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm | ||
working-directory: ./llvm-project/ | ||
- run: cmake --build . --target install | ||
working-directory: ./llvm-project/ | ||
- run: tar Jcf ./llvm13.0-mac-arm.tar.xz ./llvm13.0/ | ||
- run: tar Jcf ./llvm14.0-mac-arm.tar.xz ./llvm14.0/ | ||
- name: Upload llvm | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: llvm13.0-mac-arm.tar.xz | ||
asset_name: llvm13.0-mac-arm.tar.xz | ||
file: llvm14.0-mac-arm.tar.xz | ||
asset_name: llvm14.0-mac-arm.tar.xz | ||
tag: ${{ github.ref }} | ||
- name: Add LLVM to Path | ||
run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH | ||
run: echo "$(pwd)/llvm14.0/bin" >> $GITHUB_PATH | ||
- name: Build | ||
run: cargo build --release --verbose | ||
- name: Run tests | ||
|
@@ -194,27 +194,27 @@ jobs: | |
with: | ||
submodules: recursive | ||
- uses: dtolnay/[email protected] | ||
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git | ||
- run: git clone --depth 1 --branch solana-rustc/14.0-2022-03-22 https://github.com/solana-labs/llvm-project.git | ||
- name: Install Ninja | ||
uses: llvm/actions/install-ninja@main | ||
- run: cmake -G Ninja -DLLVM_ENABLE_ASSERTIONS=On -DLLVM_ENABLE_TERMINFO=Off | ||
-DLLVM_ENABLE_LIBXML2=Off -DLLVM_ENABLE_ZLIB=Off | ||
-DLLVM_ENABLE_PROJECTS='clang;lld' | ||
-DLLVM_TARGETS_TO_BUILD='WebAssembly;BPF' | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm13.0 llvm | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=../llvm14.0 llvm | ||
working-directory: ./llvm-project/ | ||
- run: cmake --build . --target install | ||
working-directory: ./llvm-project/ | ||
- run: tar Jcf ./llvm13.0-mac-intel.tar.xz ./llvm13.0/ | ||
- run: tar Jcf ./llvm14.0-mac-intel.tar.xz ./llvm14.0/ | ||
- name: Upload llvm | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: llvm13.0-mac-intel.tar.xz | ||
asset_name: llvm13.0-mac-intel.tar.xz | ||
file: llvm14.0-mac-intel.tar.xz | ||
asset_name: llvm14.0-mac-intel.tar.xz | ||
tag: ${{ github.ref }} | ||
- name: Add LLVM to Path | ||
run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH | ||
run: echo "$(pwd)/llvm14.0/bin" >> $GITHUB_PATH | ||
- name: Build | ||
run: cargo build --release --verbose | ||
- name: Run tests | ||
|
Oops, something went wrong.