Skip to content

Commit 0d9cea4

Browse files
authored
wasm-mutator-fuzz: Set compilers earlier (#3585)
CMAKE_C_COMPILER etc should be set before project(), in which cmake tries to decide which compiler to use.
1 parent fe4ed6a commit 0d9cea4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
cmake_minimum_required (VERSION 2.8)
55

6-
project(wasm_mutator)
7-
8-
set (CMAKE_BUILD_TYPE Debug)
9-
106
if (NOT DEFINED CMAKE_C_COMPILER)
117
set (CMAKE_C_COMPILER "clang")
128
endif ()
139
if (NOT DEFINED CMAKE_CXX_COMPILER)
1410
set (CMAKE_CXX_COMPILER "clang++")
1511
endif ()
1612

13+
project(wasm_mutator)
14+
15+
set (CMAKE_BUILD_TYPE Debug)
16+
1717
string (TOLOWER ${CMAKE_HOST_SYSTEM_NAME} WAMR_BUILD_PLATFORM)
1818

1919
# Reset default linker flags

0 commit comments

Comments
 (0)