pkgsrc-WIP-changes archive

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

llvm-git: Add patch for llvm::once_flag to make usage of it cleaner



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Mon Jan 30 19:48:25 2017 +0100
Changeset:	d0382deb7c529db4bc4b321c9e6173b775660bd8

Modified Files:
	llvm-git/distinfo
Added Files:
	llvm-git/patches/patch-include_llvm_Support_Threading.h

Log Message:
llvm-git: Add patch for llvm::once_flag to make usage of it cleaner

Solution suggested by Mehdi AMINI (Apple).

Sponsored by <The NetBSD Foundation>

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

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

diffstat:
 llvm-git/distinfo                                       |  1 +
 llvm-git/patches/patch-include_llvm_Support_Threading.h | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diffs:
diff --git a/llvm-git/distinfo b/llvm-git/distinfo
index 7931384..3d98e05 100644
--- a/llvm-git/distinfo
+++ b/llvm-git/distinfo
@@ -12,3 +12,4 @@ Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes
 SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e
 RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
 Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
+SHA1 (patch-include_llvm_Support_Threading.h) = 1bd77d6eb6dc631227e92bc0a9882d1d3db1d6e3
diff --git a/llvm-git/patches/patch-include_llvm_Support_Threading.h b/llvm-git/patches/patch-include_llvm_Support_Threading.h
new file mode 100644
index 0000000..998b4ef
--- /dev/null
+++ b/llvm-git/patches/patch-include_llvm_Support_Threading.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- include/llvm/Support/Threading.h.orig	2016-12-14 12:33:46.000000000 +0000
++++ include/llvm/Support/Threading.h
+@@ -71,7 +71,7 @@ namespace llvm {
+ 
+   /// This macro is the only way you should define your once flag for LLVM's
+   /// call_once.
+-#define LLVM_DEFINE_ONCE_FLAG(flag) static once_flag flag = Uninitialized
++#define LLVM_DEFINE_ONCE_FLAG(flag) static llvm::once_flag flag = Uninitialized
+ 
+ #endif
+ 


Home | Main Index | Thread Index | Old Index