diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-16 08:06:09 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-16 08:06:09 +0000 |
| commit | d74e6f5278e67f42e9a020f81c9eb0272f624618 (patch) | |
| tree | 935eaa12e239bc0b4409fdd948d16ab52feec9e3 /CMakeLists.txt | |
| parent | c9f3a6a0b7d781fe73b48a5765fa8b6e7ca3c2f7 (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 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f875856..9deae11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,13 +68,13 @@ add_library(CPSCodeGen STATIC llvm_map_components_to_libnames(llvm_libs core support native passes) if(CPSC_RUN_MODE STREQUAL "EMBEDDED") llvm_map_components_to_libnames(llvm_libs core support native passes mcjit) - foreach(llvm_lib IN LISTS llvm_libs) - get_target_property(llvm_type ${llvm_lib} TYPE) - if(NOT llvm_type STREQUAL "STATIC_LIBRARY") - message(FATAL_ERROR "EMBEDDED requires static LLVM libraries: ${llvm_lib}") - endif() - endforeach() endif() +foreach(llvm_lib IN LISTS llvm_libs) + get_target_property(llvm_type ${llvm_lib} TYPE) + if(NOT llvm_type STREQUAL "STATIC_LIBRARY") + message(FATAL_ERROR "cpsc requires static LLVM libraries: ${llvm_lib}") + endif() +endforeach() include(cmake/EmbeddedLLVM.cmake) add_executable(cpsc tools/driver/main.cc) |
