Skip to content

Commit

Permalink
Corrected Wa build command. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Jan 5, 2025
1 parent 724da5e commit 5ca29ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Basic/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ int Application::mainLogic(bx::Thread* thread, void* userData) {
Application* app = r_cast<Application*>(userData);
try {
return mainLogic(app);
} catch (const std::runtime_error& e) {
} catch (const std::exception& e) {
LogError(e.what());
std::abort();
}
Expand Down
2 changes: 1 addition & 1 deletion Tools/dora-wa/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# Compile the WA project
print("Compiling WA project...")
try:
subprocess.run(["wa", "build", "-optimize"], check=True)
subprocess.run(["wa", "build", "--target", "wasi", "-optimize"], check=True)
print("Compilation complete.")
except subprocess.CalledProcessError as e:
print(f"Error during compilation.")
Expand Down

0 comments on commit 5ca29ab

Please sign in to comment.