Skip to content

Commit

Permalink
Add pthread for mingw.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Jun 19, 2023
1 parent 23ba457 commit 0919fc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ env_module = env_modules.Clone()
JS_ENGINE = "quickjs"
TOOLS = "editor" == env_module["target"]

if env["platform"] == "windows":
if env["CC"] == "gcc" or (env["CC"] == "clang" and env["use_llvm"]):
env.Append(LIBS=["pthread"])


def open_file(path, mode):
if platform.python_version() > "3":
Expand Down

0 comments on commit 0919fc3

Please sign in to comment.