mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 15:05:19 +00:00
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:
parent
837ff63662
commit
ea582fbc07
|
@ -7,8 +7,12 @@ project(wasm_mutator)
|
||||||
|
|
||||||
set (CMAKE_BUILD_TYPE Debug)
|
set (CMAKE_BUILD_TYPE Debug)
|
||||||
|
|
||||||
|
if (NOT DEFINED CMAKE_C_COMPILER)
|
||||||
set (CMAKE_C_COMPILER "clang")
|
set (CMAKE_C_COMPILER "clang")
|
||||||
|
endif ()
|
||||||
|
if (NOT DEFINED CMAKE_CXX_COMPILER)
|
||||||
set (CMAKE_CXX_COMPILER "clang++")
|
set (CMAKE_CXX_COMPILER "clang++")
|
||||||
|
endif ()
|
||||||
|
|
||||||
string (TOLOWER ${CMAKE_HOST_SYSTEM_NAME} WAMR_BUILD_PLATFORM)
|
string (TOLOWER ${CMAKE_HOST_SYSTEM_NAME} WAMR_BUILD_PLATFORM)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user