Skip to content

Commit 07b3a61

Browse files
committed
Better error for unsupported platforms
1 parent a88ba16 commit 07b3a61

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,11 @@ if(_minicc_target STREQUAL "")
271271
elseif(_minicc_proc MATCHES "riscv64")
272272
set(_minicc_target "riscv64")
273273
else()
274-
message(FATAL_ERROR "Cannot auto-detect MiniCC target for processor '${CMAKE_SYSTEM_PROCESSOR}'. Set MINICC_NATIVE_TARGET explicitly.")
274+
message(FATAL_ERROR
275+
"MiniCC has no native backend for processor '${CMAKE_SYSTEM_PROCESSOR}'. "
276+
"Supported targets: i386, x86_64, arm, arm64, riscv64, wasm32. "
277+
"If TCC JIT is optional (e.g. via miniexpr), disable it with "
278+
"MINIEXPR_ENABLE_TCC_JIT=OFF instead of building minicc directly.")
275279
endif()
276280
endif()
277281
string(TOLOWER "${_minicc_target}" _minicc_target)

0 commit comments

Comments
 (0)