Skip to content

Commit

Permalink
build binaryen with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-emrich committed Aug 15, 2024
1 parent df00d90 commit 9f30646
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,13 @@ class Binaryen:

def build(self):
cpus = multiprocessing.cpu_count()
runCheck("cmake .", msg="cmake for binaryen failed", cwd=self.path)
# TODO(frank-emrich) Build with clang until the following is fixed:
# https://github.com/WebAssembly/binaryen/issues/6779
runCheck(
"cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .",
msg="cmake for binaryen failed",
cwd=self.path,
)
runCheck(f"make -j {cpus}", msg="building binaryen failed", cwd=self.path)

def wasmMergeExecutablePath(self) -> Path:
Expand Down

0 comments on commit 9f30646

Please sign in to comment.