wasm-mutator-fuzz: Make compilers overridable (#3578)

eg.
```shell
cmake .. \
-DCMAKE_C_COMPILER=/usr/local/opt/llvm@15/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm@15/bin/clang++
```
This commit is contained in:
YAMAMOTO Takashi 2024-07-01 09:43:33 +09:00 committed by GitHub
parent 837ff63662
commit ea582fbc07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)