pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang lang: Import compiler-rt version 6.0.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8d56d65662a
branches:  trunk
changeset: 383752:f8d56d65662a
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Aug 09 13:40:34 2018 +0000

description:
lang: Import compiler-rt version 6.0.1.

The compiler-rt project consists of:

 - builtins - a simple library that provides an implementation of the low-level
   target-specific hooks required by code generation and other runtime
   components. For example, when compiling for a 32-bit target, converting a
   double to a 64-bit unsigned integer is compiling into a runtime call to the
   "__fixunsdfdi" function. The builtins library provides optimized
   implementations of this and other low-level routines, either in
   target-independent C form, or as a heavily-optimized assembly.

 - sanitizer runtimes - runtime libraries that are required to run the code
   with sanitizer instrumentation. This includes runtimes for:
   *     AddressSanitizer
   *     ThreadSanitizer
   *     UndefinedBehaviorSanitizer
   *     MemorySanitizer
   *     LeakSanitizer
   *     DataFlowSanitizer

 - profile - library which is used to collect coverage information.

 - BlocksRuntime - a target-independent implementation of Apple "Blocks"
   runtime interfaces.

diffstat:

 lang/Makefile                                        |   3 +-
 lang/compiler-rt/DESCR                               |  23 +++++++++
 lang/compiler-rt/Makefile                            |  49 ++++++++++++++++++++
 lang/compiler-rt/PLIST                               |  18 +++++++
 lang/compiler-rt/buildlink3.mk                       |  14 +++++
 lang/compiler-rt/distinfo                            |   7 ++
 lang/compiler-rt/patches/patch-cmake_config-ix.cmake |  42 +++++++++++++++++
 7 files changed, 155 insertions(+), 1 deletions(-)

diffs (194 lines):

diff -r fd758259a01c -r f8d56d65662a lang/Makefile
--- a/lang/Makefile     Thu Aug 09 13:21:07 2018 +0000
+++ b/lang/Makefile     Thu Aug 09 13:40:34 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.489 2018/08/07 09:24:35 adam Exp $
+# $NetBSD: Makefile,v 1.490 2018/08/09 13:40:34 jperkin Exp $
 #
 
 COMMENT=       Programming languages
@@ -33,6 +33,7 @@
 SUBDIR+=       classpath-gui
 SUBDIR+=       clisp
 SUBDIR+=       clojure
+SUBDIR+=       compiler-rt
 SUBDIR+=       coq
 SUBDIR+=       coreclr
 SUBDIR+=       cparser
diff -r fd758259a01c -r f8d56d65662a lang/compiler-rt/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/compiler-rt/DESCR    Thu Aug 09 13:40:34 2018 +0000
@@ -0,0 +1,23 @@
+The compiler-rt project consists of:
+
+ - builtins - a simple library that provides an implementation of the low-level
+   target-specific hooks required by code generation and other runtime
+   components. For example, when compiling for a 32-bit target, converting a
+   double to a 64-bit unsigned integer is compiling into a runtime call to the
+   "__fixunsdfdi" function. The builtins library provides optimized
+   implementations of this and other low-level routines, either in
+   target-independent C form, or as a heavily-optimized assembly.
+
+ - sanitizer runtimes - runtime libraries that are required to run the code
+   with sanitizer instrumentation. This includes runtimes for:
+   *     AddressSanitizer
+   *     ThreadSanitizer
+   *     UndefinedBehaviorSanitizer
+   *     MemorySanitizer
+   *     LeakSanitizer
+   *     DataFlowSanitizer
+
+ - profile - library which is used to collect coverage information.
+
+ - BlocksRuntime - a target-independent implementation of Apple "Blocks"
+   runtime interfaces.
diff -r fd758259a01c -r f8d56d65662a lang/compiler-rt/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/compiler-rt/Makefile Thu Aug 09 13:40:34 2018 +0000
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1 2018/08/09 13:40:34 jperkin Exp $
+
+DISTNAME=      compiler-rt-6.0.1.src
+PKGNAME=       ${DISTNAME:S/.src//}
+CATEGORIES=    lang devel
+MASTER_SITES=  http://llvm.org/releases/${PKGVERSION_NOREV}/
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://compiler-rt.llvm.org/
+COMMENT=       LLVM runtime libraries
+LICENSE=       modified-bsd OR mit
+
+USE_LANGUAGES= c99 c++11
+USE_CMAKE=     yes
+GCC_REQD+=     4.8
+
+CONFIGURE_DIRS=        ${WRKDIR}/build
+CMAKE_ARG_PATH=        ${WRKSRC}
+
+OS_DIR.SunOS-5.11=     solaris2.11
+OS_DIR=                ${OS_DIR.${OPSYS}-${OS_VERSION}}
+
+CMAKE_ARGS+=   -DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+=   -DCMAKE_C_COMPILER=${CC:Q}
+CMAKE_ARGS+=   -DCMAKE_CXX_COMPILER=${CXX:Q}
+CMAKE_ARGS+=   -DCOMPILER_RT_TEST_COMPILER=${PKG_CC:Q}
+CMAKE_ARGS+=   -DCOMPILER_RT_OS_DIR:STRING=${OS_DIR}
+CMAKE_ARGS+=   -DCOMPILER_RT_INSTALL_PATH:STRING=lib/clang/${PKGVERSION_NOREV}
+CMAKE_ARGS+=   -DCOMPILER_RT_INCLUDE_TESTS:BOOL=ON
+CMAKE_ARGS+=   -DLLVM_CONFIG_PATH=${LLVM_CONFIG_PATH:Q}
+
+PLIST_SUBST+=  COMPILER_RT_OS_DIR=${OS_DIR}
+
+TEST_TARGET=   check-compiler-rt
+
+post-extract:
+       ${RUN} mkdir -p ${WRKDIR}/build
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+BUILD_DEPENDS+=                grep>=0:../../textproc/grep
+TOOLS_PATH.grep=       ${PREFIX}/bin/ggrep
+.endif
+
+.include "../../devel/googletest/buildlink3.mk"
+.include "../../lang/llvm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r fd758259a01c -r f8d56d65662a lang/compiler-rt/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/compiler-rt/PLIST    Thu Aug 09 13:40:34 2018 +0000
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2018/08/09 13:40:34 jperkin Exp $
+lib/clang/${PKGVERSION}/include/sanitizer/allocator_interface.h
+lib/clang/${PKGVERSION}/include/sanitizer/asan_interface.h
+lib/clang/${PKGVERSION}/include/sanitizer/common_interface_defs.h
+lib/clang/${PKGVERSION}/include/sanitizer/coverage_interface.h
+lib/clang/${PKGVERSION}/include/sanitizer/dfsan_interface.h
+lib/clang/${PKGVERSION}/include/sanitizer/esan_interface.h
+lib/clang/${PKGVERSION}/include/sanitizer/hwasan_interface.h
+lib/clang/${PKGVERSION}/include/sanitizer/linux_syscall_hooks.h
+lib/clang/${PKGVERSION}/include/sanitizer/lsan_interface.h
+lib/clang/${PKGVERSION}/include/sanitizer/msan_interface.h
+lib/clang/${PKGVERSION}/include/sanitizer/scudo_interface.h
+lib/clang/${PKGVERSION}/include/sanitizer/tsan_interface.h
+lib/clang/${PKGVERSION}/include/sanitizer/tsan_interface_atomic.h
+lib/clang/${PKGVERSION}/include/xray/xray_interface.h
+lib/clang/${PKGVERSION}/include/xray/xray_log_interface.h
+lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.builtins-i386.a
+lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.builtins-x86_64.a
diff -r fd758259a01c -r f8d56d65662a lang/compiler-rt/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/compiler-rt/buildlink3.mk    Thu Aug 09 13:40:34 2018 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/08/09 13:40:34 jperkin Exp $
+
+BUILDLINK_TREE+=       compiler-rt
+
+.if !defined(COMPILER_RT_BUILDLINK3_MK)
+COMPILER_RT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.compiler-rt+=    compiler-rt>=6.0.1
+BUILDLINK_PKGSRCDIR.compiler-rt?=      ../../lang/compiler-rt
+
+.include "../../lang/llvm/buildlink3.mk"
+.endif # COMPILER_RT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -compiler-rt
diff -r fd758259a01c -r f8d56d65662a lang/compiler-rt/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/compiler-rt/distinfo Thu Aug 09 13:40:34 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/08/09 13:40:34 jperkin Exp $
+
+SHA1 (compiler-rt-6.0.1.src.tar.xz) = 4a61bd09f31d3079e921205bb93fb7d05a95946b
+RMD160 (compiler-rt-6.0.1.src.tar.xz) = 1e391941c1e0a7385bb3f22a7a7061d57bd18fe7
+SHA512 (compiler-rt-6.0.1.src.tar.xz) = 69850c1ad92c66977fa217cbfb42a6a3f502fbe3d1a08daa7fc4cfeb617a7736d231f8ad8d93b10b1ae29bd753315d2a2d70f9ff1f4d18a9a7cc81758d91f963
+Size (compiler-rt-6.0.1.src.tar.xz) = 1686820 bytes
+SHA1 (patch-cmake_config-ix.cmake) = f2a871dfe7c2ee2e938e0812aa19b7498b0e71cc
diff -r fd758259a01c -r f8d56d65662a lang/compiler-rt/patches/patch-cmake_config-ix.cmake
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/compiler-rt/patches/patch-cmake_config-ix.cmake      Thu Aug 09 13:40:34 2018 +0000
@@ -0,0 +1,42 @@
+$NetBSD: patch-cmake_config-ix.cmake,v 1.1 2018/08/09 13:40:34 jperkin Exp $
+
+Disable components that aren't ready for SunOS yet.
+
+--- cmake/config-ix.cmake.orig 2018-01-03 14:54:43.000000000 +0000
++++ cmake/config-ix.cmake
+@@ -486,7 +486,7 @@ set(COMPILER_RT_SANITIZERS_TO_BUILD all
+ list_replace(COMPILER_RT_SANITIZERS_TO_BUILD all "${ALL_SANITIZERS}")
+ 
+ if (SANITIZER_COMMON_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND
+-    (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD|Fuchsia|SunOS" OR
++    (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD|Fuchsia" OR
+     (OS_NAME MATCHES "Windows" AND (NOT MINGW AND NOT CYGWIN))))
+   set(COMPILER_RT_HAS_SANITIZER_COMMON TRUE)
+ else()
+@@ -505,7 +505,7 @@ else()
+   set(COMPILER_RT_HAS_ASAN FALSE)
+ endif()
+ 
+-if (OS_NAME MATCHES "Linux|FreeBSD|Windows|NetBSD|SunOS")
++if (OS_NAME MATCHES "Linux|FreeBSD|Windows|NetBSD")
+   set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME TRUE)
+ else()
+   set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME FALSE)
+@@ -542,7 +542,7 @@ else()
+ endif()
+ 
+ if (PROFILE_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND
+-    OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|SunOS")
++    OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android")
+   set(COMPILER_RT_HAS_PROFILE TRUE)
+ else()
+   set(COMPILER_RT_HAS_PROFILE FALSE)
+@@ -556,7 +556,7 @@ else()
+ endif()
+ 
+ if (COMPILER_RT_HAS_SANITIZER_COMMON AND UBSAN_SUPPORTED_ARCH AND
+-    OS_NAME MATCHES "Darwin|Linux|FreeBSD|NetBSD|Windows|Android|Fuchsia|SunOS")
++    OS_NAME MATCHES "Darwin|Linux|FreeBSD|NetBSD|Windows|Android|Fuchsia")
+   set(COMPILER_RT_HAS_UBSAN TRUE)
+ else()
+   set(COMPILER_RT_HAS_UBSAN FALSE)



Home | Main Index | Thread Index | Old Index