b861e8f85b
Packaged in pkgsrc-wip by myself and Kamil. Remove stale pkgsrc/SunOS bread crumbs that were difficult to merge following the build framework switch. Needs to be redone. (Sorry!) Summary of significant changes in LLVM: - switch build framework from autoconf to CMake - llvm-ar now supports thin archives. - llvm doesn t produce .data.rel.ro.local or .data.rel sections anymore. - opional support for linking clang and the LLVM tools with a single libLLVM shared library pkgsrc note: we have this library in lang/libLLVM, but we don't currently use it. We may do so in the future if/when the API matures. - The optimization to move the prologue and epilogue of functions in colder code path (shrink-wrapping) is now enabled by default - new target-independent gcc-compatible emulated Thread Local Storage mode - various target specific optimizations Summary of significant changes in Clang: - new compiler flags for tuning what DWARF information is included - better strict alignment handling - better support for __builtin_object_size
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# $NetBSD: options.mk,v 1.1 2016/03/10 15:01:52 tnn Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.llvm
|
|
|
|
LLVM_TARGETS= AArch64 AMDGPU ARM BPF CppBackend Hexagon MSP430 Mips NVPTX PowerPC Sparc SystemZ X86 XCore
|
|
|
|
.for tgt in ${LLVM_TARGETS}
|
|
PLIST_VARS+= ${tgt}
|
|
PKG_SUPPORTED_OPTIONS+= llvm-target-${tgt:tl}
|
|
.endfor
|
|
|
|
# Probably safe to assume that only x86 users are interested in
|
|
# cross-compilation for now. This saves some build time for everyone else.
|
|
.if !empty(MACHINE_ARCH:Msparc*)
|
|
PKG_SUGGESTED_OPTIONS+= llvm-target-sparc
|
|
.elif !empty(MACHINE_ARCH:Mpowerpc*)
|
|
PKG_SUGGESTED_OPTIONS+= llvm-target-powerpc
|
|
.elif !empty(MACHINE_ARCH:Mearm*)
|
|
PKG_SUGGESTED_OPTIONS+= llvm-target-arm
|
|
.elif !empty(MACHINE_ARCH:M*mips*)
|
|
PKG_SUGGESTED_OPTIONS+= llvm-target-mips
|
|
.else
|
|
# X86 and everyone else get all targets by default.
|
|
. for tgt in ${LLVM_TARGETS}
|
|
PKG_SUGGESTED_OPTIONS+= llvm-target-${tgt:tl}
|
|
. endfor
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.for tgt in ${LLVM_TARGETS}
|
|
. if !empty(PKG_OPTIONS:Mllvm-target-${tgt:tl})
|
|
PLIST.${tgt}= yes
|
|
LLVM_TARGETS_TO_BUILD+= ${tgt}
|
|
. endif
|
|
.endfor
|
|
|
|
CMAKE_ARGS+= -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS_TO_BUILD:ts;}"
|