Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3e04c64
fix broken changes from ic-wasm update
kentosugama Apr 11, 2023
919a69e
Merge branch 'master' into wasm-opt
kentosugama Apr 14, 2023
62aa6ca
update ic-wasm dependency
kentosugama Apr 14, 2023
4ad8f13
Expose optimize feature
kentosugama Apr 14, 2023
329e853
add cycles and size optimization defaults as options
kentosugama Apr 14, 2023
41555b6
reword description
kentosugama Apr 17, 2023
20b3436
update expected dynamic libraries
kentosugama Apr 17, 2023
2a9de10
Merge branch 'master' into wasm-opt
kentosugama Apr 18, 2023
75a8895
add tests
kentosugama Apr 18, 2023
0830aab
update changelog
kentosugama Apr 18, 2023
3c4d9a2
fix tests
kentosugama Apr 18, 2023
1f3a749
Update description
kentosugama Apr 18, 2023
8456c73
handle invalid opt level
kentosugama Apr 18, 2023
ed5fb73
error test
kentosugama Apr 18, 2023
7d2c353
Define enums for optimization levels
kentosugama Apr 18, 2023
56579cf
fix error test
kentosugama Apr 18, 2023
b782d96
fix error test
kentosugama Apr 18, 2023
9b58944
fix invalid opt test
kentosugama Apr 19, 2023
dddfc63
remove unnecessary clone
kentosugama Apr 19, 2023
71885b1
Merge branch 'master' into wasm-opt
kentosugama Apr 19, 2023
e4bb808
different back tick notations
kentosugama Apr 19, 2023
99fe887
Merge branch 'master' into wasm-opt
kentosugama Apr 19, 2023
daa8a94
fix documentation
kentosugama Apr 20, 2023
cb3b012
simplify default optimization levels logic
kentosugama Apr 20, 2023
8baab3d
small change to ic-wasm
kentosugama Apr 20, 2023
83d54d7
remove use of serde alias
kentosugama Apr 20, 2023
65fef03
Merge branch 'master' into wasm-opt
kentosugama Apr 21, 2023
5993a8c
Use released ic-wasm
kentosugama Apr 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Check dynamically-linked libraries (macos)
run: |
ACTUAL="$(otool -L ${{ matrix.binary_path }}/dfx | awk 'NR > 1{ print $1 }' | grep -v /System/Library/Frameworks | sort | awk -v d=" " '{s=(NR==1?s:s d)$0}END{printf "%s",s}')"
EXPECTED="/usr/lib/libSystem.B.dylib /usr/lib/libiconv.2.dylib /usr/lib/libresolv.9.dylib"
EXPECTED="/usr/lib/libSystem.B.dylib /usr/lib/libc++.1.dylib /usr/lib/libiconv.2.dylib /usr/lib/libresolv.9.dylib"
echo "Dynamically-linked libraries:"
echo " Actual: $ACTUAL"
echo " Expected: $EXPECTED"
Expand All @@ -93,7 +93,7 @@ jobs:
- name: Check dynamically-linked libraries (ubuntu)
run: |
ACTUAL="$(ldd ${{ matrix.binary_path }}/dfx | awk '{ print $1 }' | sort | awk -v d=" " '{s=(NR==1?s:s d)$0}END{printf "%s",s}')"
EXPECTED="/lib64/ld-linux-x86-64.so.2 libc.so.6 libdl.so.2 libgcc_s.so.1 libm.so.6 libpthread.so.0 linux-vdso.so.1"
EXPECTED="/lib64/ld-linux-x86-64.so.2 libc.so.6 libdl.so.2 libgcc_s.so.1 libm.so.6 libpthread.so.0 libstdc++.so.6 linux-vdso.so.1"
echo "Dynamically-linked libraries:"
echo " Actual: $ACTUAL"
echo " Expected: $EXPECTED"
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@

## DFX

### feat: expose `wasm-opt` optimizer in `ic-wasm` to users

Add option to specify an "optimize" field for canisters to invoke the `wasm-opt` optimizer through `ic-wasm`.

This behavior is disabled by default.

If you want to enable this behavior, you can do so in dfx.json:

"canisters" : {
"app" : {
"optimize" : "cycles"
}
}

The options are "cycles", "size", "O4", "O3", "O2", "O1", "O0", "Oz", and "Os". The options starting with "O" are the optimization levels that `wasm-opt` provides. The "cycles" and "size" options are recommended defaults for optimizing for cycle usage and binary size respectively.

### feat: updates the dfx new starter project for env vars

- Updates the starter project for env vars to use the new `dfx build` & `dfx deploy` environment variables
Expand Down
Loading