Skip to content

Commit

Permalink
detect MingW environment in c2js
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Feb 12, 2025
1 parent 74571bf commit 5ee3bb9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Bugfixes:

* Daisy: add ScopedIrqBlocker to several functions. Should fix midi input issues and potentially others.
* Daisy: use FIFO to buffer midi TX messages and call them in the main loop instead of during process()

* JS: Ignore windows batch if inside of MingW environment

0.13.2
-----
Expand Down
3 changes: 2 additions & 1 deletion hvcc/generators/c2js/c2js.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def run_emscripten(
"""Run the emcc command to compile C source files to a javascript library.
"""

if os.name == 'nt':
# Detect Windows OS, but ignore if running in MingW
if os.name == 'nt' and os.environ.get('MSYSTEM') is None:
emcc_path = which("emcc.bat")
else:
emcc_path = which("emcc")
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ commands =
[run]
ignore = examples/*
cov-report = html,term
omit = .tox/*,venv/*,tests/*,examples/*,setup.py
omit = .tox/*,.venv/*,venv/*,tests/*,examples/*,setup.py

[flake8]
max-line-length = 120
exclude = .tox,venv,build,examples
exclude = .tox,.venv,venv,build,examples

0 comments on commit 5ee3bb9

Please sign in to comment.