From d74e6f5278e67f42e9a020f81c9eb0272f624618 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 16 Oct 2026 08:06:09 +0000 Subject: 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 --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.3.1-4-g156e