Skip to content

Commit

Permalink
wasm-mutator-fuzz: Make compilers overridable (bytecodealliance#3578)
Browse files Browse the repository at this point in the history
eg.
```shell
cmake .. \
-DCMAKE_C_COMPILER=/usr/local/opt/llvm@15/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm@15/bin/clang++
```
  • Loading branch information
yamt authored Jul 1, 2024
1 parent 837ff63 commit ea582fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/fuzz/wasm-mutator-fuzz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ project(wasm_mutator)

set (CMAKE_BUILD_TYPE Debug)

if (NOT DEFINED CMAKE_C_COMPILER)
set (CMAKE_C_COMPILER "clang")
endif ()
if (NOT DEFINED CMAKE_CXX_COMPILER)
set (CMAKE_CXX_COMPILER "clang++")
endif ()

string (TOLOWER ${CMAKE_HOST_SYSTEM_NAME} WAMR_BUILD_PLATFORM)

Expand Down

0 comments on commit ea582fb

Please sign in to comment.