head 1.10; access; symbols pkgsrc-2026Q1:1.10.0.34 pkgsrc-2026Q1-base:1.10 pkgsrc-2025Q4:1.10.0.32 pkgsrc-2025Q4-base:1.10 pkgsrc-2025Q3:1.10.0.30 pkgsrc-2025Q3-base:1.10 pkgsrc-2025Q2:1.10.0.28 pkgsrc-2025Q2-base:1.10 pkgsrc-2025Q1:1.10.0.26 pkgsrc-2025Q1-base:1.10 pkgsrc-2024Q4:1.10.0.24 pkgsrc-2024Q4-base:1.10 pkgsrc-2024Q3:1.10.0.22 pkgsrc-2024Q3-base:1.10 pkgsrc-2024Q2:1.10.0.20 pkgsrc-2024Q2-base:1.10 pkgsrc-2024Q1:1.10.0.18 pkgsrc-2024Q1-base:1.10 pkgsrc-2023Q4:1.10.0.16 pkgsrc-2023Q4-base:1.10 pkgsrc-2023Q3:1.10.0.14 pkgsrc-2023Q3-base:1.10 pkgsrc-2023Q2:1.10.0.12 pkgsrc-2023Q2-base:1.10 pkgsrc-2023Q1:1.10.0.10 pkgsrc-2023Q1-base:1.10 pkgsrc-2022Q4:1.10.0.8 pkgsrc-2022Q4-base:1.10 pkgsrc-2022Q3:1.10.0.6 pkgsrc-2022Q3-base:1.10 pkgsrc-2022Q2:1.10.0.4 pkgsrc-2022Q2-base:1.10 pkgsrc-2022Q1:1.10.0.2 pkgsrc-2022Q1-base:1.10 pkgsrc-2021Q4:1.9.0.16 pkgsrc-2021Q4-base:1.9 pkgsrc-2021Q3:1.9.0.14 pkgsrc-2021Q3-base:1.9 pkgsrc-2021Q2:1.9.0.12 pkgsrc-2021Q2-base:1.9 pkgsrc-2021Q1:1.9.0.10 pkgsrc-2021Q1-base:1.9 pkgsrc-2020Q4:1.9.0.8 pkgsrc-2020Q4-base:1.9 pkgsrc-2020Q3:1.9.0.6 pkgsrc-2020Q3-base:1.9 pkgsrc-2020Q2:1.9.0.4 pkgsrc-2020Q2-base:1.9 pkgsrc-2020Q1:1.9.0.2 pkgsrc-2020Q1-base:1.9 pkgsrc-2019Q4:1.8.0.10 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.8.0.6 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.4 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.2 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.6.0.10 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.8 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.6 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.4 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.2 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.4.0.8 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.4 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.2 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.3.0.2 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.2.0.6 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.4 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.2 pkgsrc-2016Q1-base:1.2; locks; strict; comment @# @; 1.10 date 2022.03.13.15.22.32; author tnn; state Exp; branches; next 1.9; commitid yHuWCSewa5lNj4wD; 1.9 date 2020.03.06.22.44.18; author tnn; state Exp; branches; next 1.8; commitid 3LBwaNndF7uGroZB; 1.8 date 2019.01.27.00.07.32; author tnn; state Exp; branches; next 1.7; commitid 27eHmXvH2sLMVl9B; 1.7 date 2019.01.26.21.17.20; author tnn; state Exp; branches; next 1.6; commitid oeXOFwTTZs7cZk9B; 1.6 date 2017.12.08.02.14.44; author gdt; state Exp; branches; next 1.5; commitid 6dNkQg0RidtvX1iA; 1.5 date 2017.12.01.19.22.13; author adam; state Exp; branches; next 1.4; commitid RNNRTudpzr1HSdhA; 1.4 date 2017.03.17.22.38.18; author adam; state Exp; branches; next 1.3; commitid RtC8EMbuGmoliXJz; 1.3 date 2016.11.14.20.15.33; author ryoon; state Exp; branches; next 1.2; commitid QLKL3BrgVJGvs8uz; 1.2 date 2016.03.11.06.50.42; author tnn; state Exp; branches; next 1.1; commitid sJefktrxBhE3YbYy; 1.1 date 2016.03.08.21.06.50; author tnn; state Exp; branches; next ; commitid Py5VK9urZeikMSXy; desc @@ 1.10 log @libLLVM: update to 13.0.1, for mesa update @ text @$NetBSD$ Disable library install rules. Handled manually. Make sure llvm-config goes in libexec/libLLVM to avoid conflict. Don't use non-portable -z discard-unused on SunOS. Don't use relative @@rpath in llvm-config on Darwin. --- cmake/modules/AddLLVM.cmake.orig 2021-09-24 16:18:10.000000000 +0000 +++ cmake/modules/AddLLVM.cmake @@@@ -616,10 +616,6 @@@@ function(llvm_add_library name) set(api_name ${output_name}-${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX}) set_target_properties(${name} PROPERTIES OUTPUT_NAME ${library_name}) if(UNIX) - llvm_install_library_symlink(${api_name} ${library_name} SHARED - COMPONENT ${name}) - llvm_install_library_symlink(${output_name} ${library_name} SHARED - COMPONENT ${name}) endif() endif() endif() @@@@ -820,11 +816,6 @@@@ macro(add_llvm_library name) endif() get_target_export_arg(${name} LLVM export_to_llvmexports ${umbrella}) - install(TARGETS ${name} - ${export_to_llvmexports} - LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} COMPONENT ${name} - ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX} COMPONENT ${name} - RUNTIME DESTINATION bin COMPONENT ${name}) if (NOT LLVM_ENABLE_IDE) add_llvm_install_targets(install-${name} @@@@ -1033,7 +1024,7 @@@@ function(process_llvm_pass_plugins) ## Part 1: Extension header to be included whenever we need extension # processing. - set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm) + set(LLVM_INSTALL_PACKAGE_DIR lib/libLLVM/cmake/llvm) set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}") file(WRITE "${llvm_cmake_builddir}/LLVMConfigExtensions.cmake" @@@@ -1234,7 +1225,7 @@@@ macro(add_llvm_tool name) get_target_export_arg(${name} LLVM export_to_llvmexports) install(TARGETS ${name} ${export_to_llvmexports} - RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR} + RUNTIME DESTINATION libexec/libLLVM COMPONENT ${name}) if (NOT LLVM_ENABLE_IDE) @@@@ -2118,7 +2109,7 @@@@ function(llvm_setup_rpath name) endif() if (APPLE) - set(_install_name_dir INSTALL_NAME_DIR "@@rpath") + set(_install_name_dir INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib/libLLVM") set(_install_rpath "@@loader_path/../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir}) elseif(${CMAKE_SYSTEM_NAME} MATCHES "AIX" AND BUILD_SHARED_LIBS) # $ORIGIN is not interpreted at link time by aix ld. @ 1.9 log @libLLVM: update to 9.0.1 sync w/ lang/llvm. needed for mesa 20 update. @ text @d1 1 a1 1 $NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.8 2019/01/27 00:07:32 tnn Exp $ d8 1 a8 1 --- cmake/modules/AddLLVM.cmake.orig 2019-12-11 19:15:30.000000000 +0000 d10 12 a21 12 @@@@ -222,9 +222,6 @@@@ function(add_link_opts target_name) # ld64's implementation of -dead_strip breaks tools that use plugins. set_property(TARGET ${target_name} APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-dead_strip") - elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") - set_property(TARGET ${target_name} APPEND_STRING PROPERTY - LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections") elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD|AIX") # Object files are compiled with -ffunction-data-sections. @@@@ -695,12 +692,6 @@@@ macro(add_llvm_library name) set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True) d24 1 d30 1 a30 1 - d33 1 a33 2 DEPENDS ${name} @@@@ -907,7 +898,7 @@@@ macro(add_llvm_tool name) d35 9 d51 1 a51 1 @@@@ -1727,7 +1718,7 @@@@ function(llvm_setup_rpath name) d57 3 a59 3 set(_install_rpath "@@loader_path/../lib" ${extra_libdir}) elseif(UNIX) set(_install_rpath "\$ORIGIN/../lib${LLVM_LIBDIR_SUFFIX}" ${extra_libdir}) @ 1.8 log @libLLVM: Darwin rpath fix @ text @d1 1 a1 1 $NetBSD$ d8 1 a8 1 --- cmake/modules/AddLLVM.cmake.orig 2018-08-01 07:51:55.000000000 +0000 d10 1 a10 1 @@@@ -218,9 +218,6 @@@@ function(add_link_opts target_name) d17 2 a18 1 elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") d20 1 a20 2 # Versions of bfd ld < 2.23.1 have a bug in --gc-sections that breaks @@@@ -654,11 +651,6 @@@@ macro(add_llvm_library name) d26 3 a28 2 - ${install_type} DESTINATION ${install_dir} - COMPONENT ${name}) d30 1 a30 1 if (NOT CMAKE_CONFIGURATION_TYPES) d33 1 a33 12 @@@@ -693,10 +685,6 @@@@ macro(add_llvm_loadable_module name) set_property(GLOBAL PROPERTY LLVM_HAS_EXPORTS True) endif() - install(TARGETS ${name} - ${export_to_llvmexports} - LIBRARY DESTINATION ${dlldir} - ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) endif() set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name}) endif() @@@@ -887,7 +875,7 @@@@ macro(add_llvm_tool name) d41 2 a42 2 if (NOT CMAKE_CONFIGURATION_TYPES) @@@@ -1632,7 +1620,7 @@@@ function(llvm_setup_rpath name) @ 1.7 log @libLLVM: update to 7.0.1, adapted from lang/llvm @ text @d6 1 d52 9 @ 1.6 log @libLLVM: Revert update to 5.0.0 The update broke MesaLib, which blocks a vast number of packages. In the interest of stability heading towards 2017Q4, revert it, leaving the issue of how to handle updates to this package (how much testing is required, keeping multiple versions, etc.) to after the branch. @ text @d1 1 a1 1 $NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.4 2017/03/17 22:38:18 adam Exp $ d7 1 a7 1 --- cmake/modules/AddLLVM.cmake.orig 2017-01-17 21:47:58.000000000 +0000 d9 1 a9 1 @@@@ -182,9 +182,6 @@@@ function(add_link_opts target_name) d16 1 a16 1 elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD) d19 1 a19 1 @@@@ -591,10 +588,6 @@@@ macro(add_llvm_library name) d27 1 a27 1 d29 3 a31 2 add_custom_target(install-${name} @@@@ -632,10 +625,6 @@@@ macro(add_llvm_loadable_module name) d42 1 a42 1 @@@@ -823,7 +812,7 @@@@ macro(add_llvm_tool name) a50 9 @@@@ -864,7 +853,7 @@@@ macro(add_llvm_utility name) set_target_properties(${name} PROPERTIES FOLDER "Utils") if( LLVM_INSTALL_UTILS AND LLVM_BUILD_UTILS ) install (TARGETS ${name} - RUNTIME DESTINATION bin + RUNTIME DESTINATION libexec/libLLVM COMPONENT ${name}) if (NOT CMAKE_CONFIGURATION_TYPES) add_custom_target(install-${name} @ 1.5 log @llvm: updated to 5.0.0 5.0.0: Non-comprehensive list of changes in this release * LLVM’s WeakVH has been renamed to WeakTrackingVH and a new WeakVH has been introduced. The new WeakVH nulls itself out on deletion, but does not track values across RAUW. * A new library named BinaryFormat has been created which holds a collection of code which previously lived in Support. This includes the file_magic structure and identify_magic functions, as well as all the structure and type definitions for DWARF, ELF, COFF, WASM, and MachO file formats. * The tool llvm-pdbdump has been renamed llvm-pdbutil to better reflect its nature as a general purpose PDB manipulation / diagnostics tool that does more than just dumping contents. * The BBVectorize pass has been removed. It was fully replaced and no longer used back in 2014 but we didn’t get around to removing it. Now it is gone. The SLP vectorizer is the suggested non-loop vectorization pass. * A new tool opt-viewer.py has been added to visualize optimization remarks in HTML. The tool processes the YAML files produced by clang with the -fsave-optimization-record option. * A new CMake macro LLVM_REVERSE_ITERATION has been added. If enabled, all supported unordered LLVM containers would be iterated in reverse order. This is useful for uncovering non-determinism caused by iteration of unordered containers. Currently, it supports reverse iteration of SmallPtrSet and DenseMap. * A new tool llvm-dlltool has been added to create short import libraries from GNU style definition files. The tool utilizes the PE COFF SPEC Import Library Format and PE COFF Auxiliary Weak Externals Format to achieve compatibility with LLD and MSVC LINK. @ text @d7 1 a7 1 --- cmake/modules/AddLLVM.cmake.orig 2017-07-12 21:43:14.000000000 +0000 d9 1 a9 1 @@@@ -198,9 +198,6 @@@@ function(add_link_opts target_name) d19 1 a19 1 @@@@ -607,10 +604,6 @@@@ macro(add_llvm_library name) d30 1 a30 1 @@@@ -648,10 +641,6 @@@@ macro(add_llvm_loadable_module name) d41 1 a41 1 @@@@ -839,7 +828,7 @@@@ macro(add_llvm_tool name) d50 9 @ 1.4 log @LLVM 4.0.0: The minimum compiler version required for building LLVM has been raised to 4.8 for GCC and 2015 for Visual Studio. The C API functions LLVMAddFunctionAttr, LLVMGetFunctionAttr, LLVMRemoveFunctionAttr, LLVMAddAttribute, LLVMRemoveAttribute, LLVMGetAttribute, LLVMAddInstrAttribute and LLVMRemoveInstrAttribute have been removed. The C API enum LLVMAttribute has been deleted. The definition and uses of LLVM_ATRIBUTE_UNUSED_RESULT in the LLVM source were replaced with LLVM_NODISCARD, which matches the C++17 [[nodiscard]] semantics rather than gcc’s __attribute__((warn_unused_result)). The Timer related APIs now expect a Name and Description. When upgrading code the previously used names should become descriptions and a short name in the style of a programming language identifier should be added. LLVM now handles invariant.group across different basic blocks, which makes it possible to devirtualize virtual calls inside loops. The aggressive dead code elimination phase (“adce”) now removes branches which do not effect program behavior. Loops are retained by default since they may be infinite but these can also be removed with LLVM option -adce-remove-loops when the loop body otherwise has no live operations. The llvm-cov tool can now export coverage data as json. Its html output mode has also improved. @ text @d1 1 a1 1 $NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.3 2016/11/14 20:15:33 ryoon Exp $ d7 1 a7 1 --- cmake/modules/AddLLVM.cmake.orig 2017-01-17 21:47:58.000000000 +0000 d9 1 a9 1 @@@@ -182,9 +182,6 @@@@ function(add_link_opts target_name) d19 1 a19 1 @@@@ -591,10 +588,6 @@@@ macro(add_llvm_library name) d30 1 a30 1 @@@@ -632,10 +625,6 @@@@ macro(add_llvm_loadable_module name) d41 1 a41 1 @@@@ -823,7 +812,7 @@@@ macro(add_llvm_tool name) a49 9 @@@@ -864,7 +853,7 @@@@ macro(add_llvm_utility name) set_target_properties(${name} PROPERTIES FOLDER "Utils") if( LLVM_INSTALL_UTILS AND LLVM_BUILD_UTILS ) install (TARGETS ${name} - RUNTIME DESTINATION bin + RUNTIME DESTINATION libexec/libLLVM COMPONENT ${name}) if (NOT CMAKE_CONFIGURATION_TYPES) add_custom_target(install-${name} @ 1.3 log @Update llvm packages to 3.9.0 * Drop CppBackend. It is removed. Changelog: * GCC ABI Tag * LLVM IR: new intrinsics etc. * Change LLVM IPO model * Support ThinLTO * Improve the ARM targets, ARMv8.2-A support etc. * Improve the MIPS targets * Improve the PowerPC target, default optim O3 to O2 * Improve the X86 target, SKylake AVX-512 etc. * Improve the AMDGPU, better support for Mesa 12 @ text @d1 1 a1 1 $NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.2 2016/03/11 06:50:42 tnn Exp $ d7 1 a7 1 --- cmake/modules/AddLLVM.cmake.orig 2016-07-10 02:43:47.000000000 +0000 d9 1 a9 1 @@@@ -174,9 +174,9 @@@@ function(add_link_opts target_name) a15 3 +# elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") +# set_property(TARGET ${target_name} APPEND_STRING PROPERTY +# LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections") d19 2 a20 2 @@@@ -558,10 +558,12 @@@@ macro(add_llvm_library name) set(install_type ARCHIVE) d23 4 a26 6 + if (false) install(TARGETS ${name} EXPORT LLVMExports ${install_type} DESTINATION ${install_dir} COMPONENT ${name}) + endif() d30 2 a31 3 @@@@ -592,10 +594,12 @@@@ macro(add_llvm_loadable_module name) else() set(dlldir "lib${LLVM_LIBDIR_SUFFIX}") d33 5 a37 6 + if (false) install(TARGETS ${name} EXPORT LLVMExports LIBRARY DESTINATION ${dlldir} ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) + endif() d41 2 a42 2 @@@@ -770,7 +774,7 @@@@ macro(add_llvm_tool name) if( LLVM_BUILD_TOOLS ) d44 1 a44 1 EXPORT LLVMExports d50 1 a50 1 @@@@ -811,7 +815,7 @@@@ macro(add_llvm_utility name) @ 1.2 log @resurrect and copy the previous clang patch-ac to here jperkin Mon Mar 7 16:27:47 UTC 2016 Do not use "-z discard-unused" linker flags on SunOS, it is only supported by the very latest Oracle Solaris release. @ text @d1 1 a1 1 $NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.1 2016/03/08 21:06:50 tnn Exp $ d7 1 a7 1 --- cmake/modules/AddLLVM.cmake.orig 2016-02-12 17:52:29.000000000 +0000 d35 14 a48 1 @@@@ -702,7 +704,7 @@@@ macro(add_llvm_tool name) d52 1 a52 1 - RUNTIME DESTINATION bin d57 9 @ 1.1 log @update to libLLVM-3.8.0 Decouple the package from lang/clang that so it can be maintained and updated independently. This switches the build framework from autoconf to cmake. There are no significant changes to the AMDGPU target mentioned in the release notes. Other changes are not relevant to mention here since mesa is the only user of this package in pkgsrc proper. @ text @d1 1 a1 1 $NetBSD$ d5 1 d7 1 a7 1 --- cmake/modules/AddLLVM.cmake.orig 2016-01-12 07:44:58.000000000 +0000 d9 14 a22 1 @@@@ -555,10 +555,12 @@@@ macro(add_llvm_library name) d35 1 a35 1 @@@@ -699,7 +701,7 @@@@ macro(add_llvm_tool name) @