diff --git a/src/main.zig b/src/main.zig index 0f2a0a225c361b3ec1d92f77e5b31d4b28e02b4d..52bb4b9c4e19dceed6a0ec504110d84d7d9c2f6c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -3360,6 +3360,10 @@ fn buildOutputType( fatal("--debug-incremental requires -fincremental", .{}); } + if (incremental and create_module.resolved_options.use_llvm) { + warn("-fincremental is currently unsupported by the LLVM backend; crashes or miscompilations are likely", .{}); + } + const cache_mode: Compilation.CacheMode = b: { // Once incremental compilation is the default, we'll want some smarter logic here, // considering things like the backend in use and whether there's a ZCU.