Skip to content

feat(optimizer): bump Rust toolchain to 1.93.1 - #2

Merged
psibi merged 1 commit into
mainfrom
rust-1.93.1
Feb 19, 2026
Merged

feat(optimizer): bump Rust toolchain to 1.93.1#2
psibi merged 1 commit into
mainfrom
rust-1.93.1

Conversation

@side2k

@side2k side2k commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@side2k
side2k requested a review from psibi February 19, 2026 09:22
RUN cd binaryen-version_*/ \
&& git clone --depth 1 https://github.com/google/googletest.git ./third_party/googletest \
- && cmake . -G Ninja -DCMAKE_CXX_FLAGS="-static" -DCMAKE_C_FLAGS="-static" -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC_LIB=ON \
+ && cmake . -G Ninja -DCMAKE_CXX_FLAGS="-static -Wno-error=maybe-uninitialized" -DCMAKE_C_FLAGS="-static" -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC_LIB=ON \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for:

-Wno-error=maybe-uninitialized

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build was failing with this error:

34.85 ninja: job failed: /usr/bin/c++  -I/binaryen-version_116/src -I/binaryen-version_116/third_party/llvm-project/include -I/binaryen-version_116 -static -DBUILD_LLVM_DWARF -Wall -Werro
r -Wextra -Wno-unused-parameter -fno-omit-frame-pointer -fno-rtti -Wno-implicit-int-float-conversion -Wno-unknown-warning-option -Wswitch -Wimplicit-fallthrough -Wnon-virtual-dtor -fPIC -
fdiagnostics-color=always -O3 -DNDEBUG -UNDEBUG -std=c++17 -MD -MT src/passes/CMakeFiles/passes.dir/Strip.cpp.o -MF src/passes/CMakeFiles/passes.dir/Strip.cpp.o.d -o src/passes/CMakeFiles
/passes.dir/Strip.cpp.o -c /binaryen-version_116/src/passes/Strip.cpp                                                                                                                      
34.85 In file included from /usr/include/c++/15.2.0/functional:61,                                                                                                                         
34.85                  from /binaryen-version_116/src/passes/Strip.cpp:22:                                                                                                                 
34.85 In copy constructor 'std::function<_Res(_ArgTypes ...)>::function(const std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {wasm::CustomSection&}]',                
34.85     inlined from 'wasm::Strip::Strip(Decider)' at /binaryen-version_116/src/passes/Strip.cpp:37:28,                                                                                  
34.85     inlined from 'wasm::Pass* wasm::createStripDebugPass()' at /binaryen-version_116/src/passes/Strip.cpp:62:4:                                                                      
34.85 /usr/include/c++/15.2.0/bits/std_function.h:393:17: error: '<anonymous>' may be used uninitialized [-Werror=maybe-uninitialized]                                                     
34.85   393 |             __x._M_manager(_M_functor, __x._M_functor, __clone_functor);                                                                                                     
34.85       |             ~~~~^~~~~~~~~~                                                                                                                                                   
34.85 /usr/include/c++/15.2.0/bits/std_function.h: In function 'wasm::Pass* wasm::createStripDebugPass()':                                                                                 
34.85 /usr/include/c++/15.2.0/bits/std_function.h:269:7: note: by argument 2 of type 'const std::_Any_data&' to 'static bool std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_mana
ger(std::_Any_data&, const std::_Any_data&, std::_Manager_operation) [with _Res = bool; _Functor = wasm::createStripDebugPass()::<lambda(const wasm::CustomSection&)>; _ArgTypes = {wasm::C
ustomSection&}]' declared here                                                                                                                                                             
34.85   269 |       _M_manager(_Any_data& __dest, const _Any_data& __source,                                                                                                               
34.85       |       ^~~~~~~~~~                                                                                                                                                             
34.85 /binaryen-version_116/src/passes/Strip.cpp:58:20: note: '<anonymous>' declared here                                                                                                  
34.85    58 |   return new Strip([&](const CustomSection& curr) {                                                                                                                          
34.85       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                          
34.85    59 |     return curr.name == BinaryConsts::CustomSections::Name ||                                                                                                                
34.85       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                
34.85    60 |            curr.name == BinaryConsts::CustomSections::SourceMapUrl ||                                                                                                        
34.85       |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                        
34.85    61 |            curr.name.find(".debug") == 0 || curr.name.find("reloc..debug") == 0;                                                                                             
34.85       |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                             
34.85    62 |   });                                                                                                                                                                        
34.85       |   ~    

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It suppresses a warning that is treated like an error by compiler flags. I did not want to go deeper into fixing the code I'm not familiar with. I'm also not feeling great about ignoring a compiler warning, but since its not our product, as long as it works - should be ok, I think?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, I believe we will know once we run the tests against kolme. :-)

@psibi psibi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work with the patch file! LGTM, merge it once the CI turns green.

@psibi
psibi merged commit 1286c3d into main Feb 19, 2026
1 check passed
@side2k
side2k deleted the rust-1.93.1 branch February 23, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants