Skip to content

Commit

Permalink
fix c++ compilation (for gcc atleast)
Browse files Browse the repository at this point in the history
  • Loading branch information
neroist committed Jun 8, 2024
1 parent 0d25368 commit 2494561
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webui/bindings.nim
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ else:
{.passC: "-I" & currentSourceDir / "webui" / "src" / "webview".}

{.compile: currentSourceDir / "webui" / "src" / "webview" / "wkwebview.m".}

# fix for cpp
when (defined(clang) or defined(gcc)) and defined(cpp):
{.passL: "-static".}

{.passC: "-DNDEBUG -DNO_CACHING -DNO_CGI -DUSE_WEBSOCKET".}

Expand Down

0 comments on commit 2494561

Please sign in to comment.