Skip to content

Commit ea582fb

Browse files
authored
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++ ```
1 parent 837ff63 commit ea582fb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/fuzz/wasm-mutator-fuzz/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ project(wasm_mutator)
77

88
set (CMAKE_BUILD_TYPE Debug)
99

10+
if (NOT DEFINED CMAKE_C_COMPILER)
1011
set (CMAKE_C_COMPILER "clang")
12+
endif ()
13+
if (NOT DEFINED CMAKE_CXX_COMPILER)
1114
set (CMAKE_CXX_COMPILER "clang++")
15+
endif ()
1216

1317
string (TOLOWER ${CMAKE_HOST_SYSTEM_NAME} WAMR_BUILD_PLATFORM)
1418

0 commit comments

Comments
 (0)