[Midnightbsd-cvs] [MidnightBSD/mports] 058df1: devel/llvm22: add LLVM 22 (#733)
Lucas Holt
noreply at github.com
Mon Aug 10 10:01:52 EDT 2026
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/mports
Commit: 058df1f1310edccf10b3a2b6b354191a4b4e5631
https://github.com/MidnightBSD/mports/commit/058df1f1310edccf10b3a2b6b354191a4b4e5631
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-08-10 (Mon, 10 Aug 2026)
Changed paths:
M Mk/extensions/llvm.mk
M devel/Makefile
A devel/llvm22/Makefile
A devel/llvm22/Makefile.COMMANDS
A devel/llvm22/Makefile.MAN1SRCS
A devel/llvm22/Makefile.RUNTIMES
A devel/llvm22/distinfo
A devel/llvm22/files/gold-off-llvm_tools_CMakeLists.txt
A devel/llvm22/files/llvm-wrapper.sh.in
A devel/llvm22/files/patch-backport-93a67259cf23
A devel/llvm22/files/patch-clang_lib_Basic_Targets_OSTargets.h
A devel/llvm22/files/patch-clang_tools_clang-format_clang-format-sublime.py
A devel/llvm22/files/patch-clang_tools_clang-format_clang-format.py
A devel/llvm22/files/patch-clang_tools_clang-format_git-clang-format
A devel/llvm22/files/patch-cmake_config.guess
A devel/llvm22/files/patch-cmake_modules_AddSphinxTarget.cmake
A devel/llvm22/files/patch-compiler-rt_CMakeLists.txt
A devel/llvm22/files/patch-compiler-rt_cmake_config-ix.cmake
A devel/llvm22/files/patch-compiler-rt_lib_builtins_fp__extend.h
A devel/llvm22/files/patch-compiler-rt_lib_builtins_fp__trunc.h
A devel/llvm22/files/patch-compiler-rt_lib_cfi_CMakeLists.txt
A devel/llvm22/files/patch-compiler-rt_lib_msan_CMakeLists.txt
A devel/llvm22/files/patch-compiler-rt_lib_profile_InstrProfilingPlatformLinux.c
A devel/llvm22/files/patch-compiler-rt_lib_tsan_CMakeLists.txt
A devel/llvm22/files/patch-flang-rt_lib_runtime_environment.cpp
A devel/llvm22/files/patch-fopenmp.diff
A devel/llvm22/files/patch-lldb_CMakeLists.txt
A devel/llvm22/files/patch-lldb_cmake_modules_LLDBConfig.cmake
A devel/llvm22/files/patch-lldb_source_Host_CMakeLists.txt
A devel/llvm22/files/patch-lldb_source_Initialization_CMakeLists.txt
A devel/llvm22/files/patch-lldb_source_Plugins_Process_CMakeLists.txt
A devel/llvm22/files/patch-lldb_source_Plugins_Process_FreeBSDKernel_CMakeLists.txt
A devel/llvm22/files/patch-lldb_tools_lldb-server_CMakeLists.txt
A devel/llvm22/files/patch-llvm_cmake_modules_AddLLVM.cmake
A devel/llvm22/files/patch-llvm_cmake_modules_HandleLLVMOptions.cmake
A devel/llvm22/files/patch-llvm_lib_TargetParser_Triple.cpp
A devel/llvm22/files/patch-llvm_tools_llvm-readobj_ELFDumper.cpp
A devel/llvm22/files/patch-llvm_tools_llvm_objcopy_ObjcopyOptions.cpp
A devel/llvm22/files/xtoolchain.mk.in
A devel/llvm22/pkg-descr
A devel/llvm22/pkg-plist
Log Message:
-----------
devel/llvm22: add LLVM 22 (#733)
Import LLVM 22.1.8 and adapt the compiler runtimes, target handling, and
patches for MidnightBSD.
AI-Assisted-by: OpenAI Codex <noreply at openai.com>
## Summary by Sourcery
Add a new llvm22 port providing LLVM 22.1.8 and Clang toolchain for
MidnightBSD, and register it in the ports framework.
New Features:
- Introduce devel/llvm22 port packaging LLVM 22.1.8 with Clang, LLD,
LLDB, MLIR, OpenMP, Flang, and related tools and runtimes, with default
and lite flavors.
- Support MidnightBSD-specific triples, ELF OSABI handling, system
detection, and preprocessor macros across LLVM, Clang, compiler-rt, and
LLDB so the toolchain recognizes MidnightBSD as a FreeBSD-family OS.
Bug Fixes:
- Work around platform-specific issues in compiler-rt floating-point
helpers, ELF profiling, and Flang environment handling on MidnightBSD
and i386.
- Ensure clang-format helper scripts use the version-suffixed
clang-format binary installed by the llvm22 port, avoiding path and
version conflicts.
Enhancements:
- Extend the shared llvm.mk infrastructure to accept LLVM version 22,
enabling consumers to depend on this new toolchain version.
- Adjust build configuration, rpath handling, and Sphinx doc generation
to work correctly on MidnightBSD and integrate with the existing ports
options model for backends and components.
- Refine compiler-rt runtime configuration and sanitizer support
matrices to treat MidnightBSD similarly to FreeBSD, including profile
and sanitizer libraries across supported architectures.
Documentation:
- Hook LLVM and subproject manpage and documentation installation into
MidnightBSD’s ports layout with versioned suffixes for the llvm22
toolchain.
Tests:
- Retain the llvm do-test target wiring for the new port so upstream
lit-based tests can be run when enabled.
Signed-off-by: Lucas Holt <luke at foolishgames.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications
More information about the Midnightbsd-cvs
mailing list