Fix Windows/MSVC build issues (#1498)

Fix two issues of building WAMR on Windows:
- The build_llvm.py script calls itself, spawning instances faster than they expire,
   which makes Python3 eat up the entire RAM in a pretty short time.
- The MSVC compiler doesn't support preprocessor statements inside macro expressions.
  Two places inside bh_assert() were found.
This commit is contained in:
Daniel Ludwig
2022-09-17 15:16:38 +02:00
committed by GitHub
parent 12bbb9189c
commit 046f5f2212
3 changed files with 21 additions and 13 deletions

View File

@ -11,4 +11,4 @@ import sys
script = (
pathlib.Path(__file__).parent.joinpath("../build-scripts/build_llvm.py").resolve()
)
subprocess.check_call([sys.executable, script.name])
subprocess.check_call([sys.executable, script])