pkgsrc-WIP-changes archive

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

compiler-rt: work around upstream problem in assember code



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Thu Aug 11 21:05:58 2022 +0200
Changeset:	81463ac0a22420d8bef0fafef18d7919817564bf

Modified Files:
	compiler-rt/distinfo
Added Files:
	compiler-rt/patches/patch-lib_asan_CMakeLists.txt

Log Message:
compiler-rt: work around upstream problem in assember code

From kstoimenov@github.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=81463ac0a22420d8bef0fafef18d7919817564bf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 compiler-rt/distinfo                              |  1 +
 compiler-rt/patches/patch-lib_asan_CMakeLists.txt | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diffs:
diff --git a/compiler-rt/distinfo b/compiler-rt/distinfo
index e3c4af8fe0..dd98d760a2 100644
--- a/compiler-rt/distinfo
+++ b/compiler-rt/distinfo
@@ -4,4 +4,5 @@ BLAKE2s (compiler-rt-14.0.6.src.tar.xz) = d2c279dadc7d3cd7f8c2999e918d410eaf7c74
 SHA512 (compiler-rt-14.0.6.src.tar.xz) = c0e63071cb99bca837b83fd0e3597cf45cc635f73ab88a1ec48e863a1633f42bd402ea7c5130e8fa0f550b9574c1ecac1799b92b789565e4ead955cf60060907
 Size (compiler-rt-14.0.6.src.tar.xz) = 2327352 bytes
 SHA1 (patch-cmake_config-ix.cmake) = 40ee86393c0f9e26eeaa493c5312d2cabf4c2a58
+SHA1 (patch-lib_asan_CMakeLists.txt) = f91335b88c8c28a25d7dfada85769f799660f82a
 SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cpp) = 8d9b35c02f0c8c10d7e7d3bf9935bd0ca3f5f448
diff --git a/compiler-rt/patches/patch-lib_asan_CMakeLists.txt b/compiler-rt/patches/patch-lib_asan_CMakeLists.txt
new file mode 100644
index 0000000000..0299ee934e
--- /dev/null
+++ b/compiler-rt/patches/patch-lib_asan_CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Only use optimized asan code on Linux.
+https://github.com/llvm/llvm-project/issues/57086
+
+--- lib/asan/CMakeLists.txt.orig	2022-06-22 16:46:24.000000000 +0000
++++ lib/asan/CMakeLists.txt
+@@ -46,7 +46,7 @@ set(ASAN_STATIC_SOURCES
+   asan_rtl_static.cpp
+   )
+ 
+-if (NOT WIN32 AND NOT APPLE)
++if (LINUX)
+   list(APPEND ASAN_STATIC_SOURCES
+     asan_rtl_x86_64.S
+   )


Home | Main Index | Thread Index | Old Index