File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -455,3 +455,23 @@ jobs:
455
455
run : |
456
456
python check.py --binaryen-bin=out/bin lit
457
457
python check.py --binaryen-bin=out/bin gtest
458
+
459
+ # Ensures we can build in no-asserts mode (just building).
460
+ build-noasserts :
461
+ name : noasserts
462
+ runs-on : ubuntu-latest
463
+ steps :
464
+ - uses : actions/setup-python@v5
465
+ with :
466
+ python-version : ' 3.x'
467
+ - uses : actions/checkout@v4
468
+ with :
469
+ submodules : true
470
+ - name : install ninja
471
+ run : sudo apt-get install ninja-build
472
+ - name : cmake
473
+ run : |
474
+ mkdir -p out
475
+ cmake -S . -B out -G Ninja -DCMAKE_INSTALL_PREFIX=out/install -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DBYN_ENABLE_ASSERTIONS=OFF
476
+ - name : build
477
+ run : cmake --build out -v
Original file line number Diff line number Diff line change @@ -974,7 +974,7 @@ struct Reducer
974
974
return maxSkip > 2 ;
975
975
}
976
976
977
- void visitModule (Module* curr) {
977
+ void visitModule ([[maybe_unused]] Module* curr) {
978
978
// The initial module given to us is our global object. As we continue to
979
979
// process things here, we may replace the module, so we should never again
980
980
// refer to curr.
Original file line number Diff line number Diff line change @@ -947,7 +947,7 @@ void WasmBinaryWriter::writeNames() {
947
947
auto substart =
948
948
startSubsection (BinaryConsts::CustomSections::Subsection::NameLocal);
949
949
o << U32LEB (functionsWithLocalNames.size ());
950
- Index emitted = 0 ;
950
+ [[maybe_unused]] Index emitted = 0 ;
951
951
for (auto & [index, func] : functionsWithLocalNames) {
952
952
// Pairs of (local index in IR, name).
953
953
std::vector<std::pair<Index, Name>> localsWithNames;
You can’t perform that action at this time.
0 commit comments