Skip to content

Commit

Permalink
fix: fix web shell OOM issue (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
xx01cyx authored Nov 17, 2024
1 parent 70ec55c commit 9f8bddd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ endif()
if(EMSCRIPTEN)
add_compile_options(-fexceptions)
add_link_options(-fexceptions)

# Memory configuration
add_compile_options(-sALLOW_MEMORY_GROWTH=1)
add_compile_options(-sMAXIMUM_MEMORY=64MB)
add_link_options(-sALLOW_MEMORY_GROWTH=1)
add_link_options(-sMAXIMUM_MEMORY=64MB)
endif()

# People keep running CMake in the wrong folder, completely nuking their project or creating weird bugs.
Expand Down
8 changes: 4 additions & 4 deletions tools/wasm-shell/extra_files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
<meta name="twitter:site" content="@CMUDB">
<meta name="twitter:creator" content="@CMUDB">
<meta name="twitter:domain" content=".">
<meta property="twitter:label1" content="Semester?" />
<meta property="twitter:data1" content="Fall 2022" />
<meta property="twitter:label1" content="Relational?" />
<meta property="twitter:data1" content="Hell Yes" />
<meta property="twitter:label1" content="Semester" />
<meta property="twitter:data1" content="Fall 2024" />
<meta property="twitter:label1" content="SQL Database?" />
<meta property="twitter:data1" content="You Know It!" />
</head>

<body>
Expand Down

0 comments on commit 9f8bddd

Please sign in to comment.