aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-16 08:06:09 +0000
committer_ov4 <ov4@ov4.org>2026-10-16 08:06:09 +0000
commitd74e6f5278e67f42e9a020f81c9eb0272f624618 (patch)
tree935eaa12e239bc0b4409fdd948d16ab52feec9e3 /cmake
parentc9f3a6a0b7d781fe73b48a5765fa8b6e7ca3c2f7 (diff)
feat(driver)!: select LLVM IR output with -S
Save native executables by default and LLVM IR with -S, using source-adjacent .out and .ll names. Keep -r independent of output selection and update the manuals and three-platform nightly smoke checks. BREAKING CHANGE: plain compilation and -o now save native executables. Use -S to save textual LLVM IR. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/NativeCompiler.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/NativeCompiler.cmake b/cmake/NativeCompiler.cmake
index 8371ee2..0a2ad70 100644
--- a/cmake/NativeCompiler.cmake
+++ b/cmake/NativeCompiler.cmake
@@ -3,6 +3,9 @@ find_package(Clang REQUIRED CONFIG HINTS "${LLVM_INSTALL_PREFIX}/lib/cmake/clang
cpsc_find_dependency(PATH LLD_DIR NAMES LLDConfig.cmake PATH_SUFFIXES lib/cmake/lld cmake)
find_package(LLD REQUIRED CONFIG HINTS "${LLVM_INSTALL_PREFIX}/lib/cmake/lld")
find_package(Python3 3.9 REQUIRED COMPONENTS Interpreter)
+if(NOT LLVM_ENABLE_ZLIB)
+ message(FATAL_ERROR "Native link resources require LLVM built with zlib support")
+endif()
if(MINGW)
set(cpsc_native_platform windows)