File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -57,5 +57,16 @@ if(CMAKE_BUILD_TYPE EQUAL "Release")
57
57
target_link_options (size_test PRIVATE "LINKER:--gc-sections" )
58
58
endif ()
59
59
60
+ #
61
+ # size_test_all_ops: binary with portable ops and no delegate backend
62
+ #
63
+ add_executable (size_test_all_ops ${_size_test__srcs} )
64
+ target_link_options_shared_lib(portable_ops_lib)
65
+ target_link_libraries (size_test_all_ops executorch
66
+ portable_ops_lib portable_kernels)
67
+ if (CMAKE_BUILD_TYPE EQUAL "Release" )
68
+ target_link_options (size_test_all_ops PRIVATE "LINKER:--gc-sections" )
69
+ endif ()
70
+
60
71
# Print all summary
61
72
executorch_print_configuration_summary()
Original file line number Diff line number Diff line change @@ -46,11 +46,14 @@ cmake_install_executorch_lib() {
46
46
test_cmake_size_test () {
47
47
retry cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=cmake-out -Bcmake-out/test test
48
48
49
- echo " Build selective build test"
49
+ echo " Build size test"
50
50
cmake --build cmake-out/test -j9 --config Release
51
51
52
- echo ' Size of the binary:'
52
+ echo ' ExecuTorch with no ops binary size, unstripped :'
53
53
ls -al cmake-out/test/size_test
54
+
55
+ echo ' ExecuTorch with portable ops binary size, unstripped:'
56
+ ls -al cmake-out/test/size_test_all_ops
54
57
}
55
58
56
59
if [[ -z $BUCK2 ]]; then
You can’t perform that action at this time.
0 commit comments