Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
419cceda
Kaydet (Commit)
419cceda
authored
Şub 23, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use the same compiler test for atomics in clucene as sal
üst
caf607f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
clucene-gcc-atomics.patch
clucene/patches/clucene-gcc-atomics.patch
+20
-0
Makefile
clucene/source/Makefile
+1
-0
No files found.
clucene/patches/clucene-gcc-atomics.patch
0 → 100644
Dosyayı görüntüle @
419cceda
--- src/shared/CLucene/config/threads.cpp 2012-02-23 12:06:55.355506304 +0000
+++ src/shared/CLucene/config/threads.cpp 2012-02-23 12:07:17.131766381 +0000
@@ -185,7 +185,7 @@
}
int32_t atomic_threads::atomic_increment(_LUCENE_ATOMIC_INT *theInteger){
- #ifdef _CL_HAVE_GCC_ATOMIC_FUNCTIONS
+ #if ( __GNUC__ > 4 ) || (( __GNUC__ == 4) && ( __GNUC_MINOR__ >= 4 ))
return __sync_add_and_fetch(theInteger, 1);
#else
SCOPED_LOCK_MUTEX(theInteger->THIS_LOCK)
@@ -193,7 +193,7 @@
#endif
}
int32_t atomic_threads::atomic_decrement(_LUCENE_ATOMIC_INT *theInteger){
- #ifdef _CL_HAVE_GCC_ATOMIC_FUNCTIONS
+ #if ( __GNUC__ > 4 ) || (( __GNUC__ == 4) && ( __GNUC_MINOR__ >= 4 ))
return __sync_sub_and_fetch(theInteger, 1);
#else
SCOPED_LOCK_MUTEX(theInteger->THIS_LOCK)
clucene/source/Makefile
Dosyayı görüntüle @
419cceda
...
@@ -41,6 +41,7 @@ done :
...
@@ -41,6 +41,7 @@ done :
$(GNUTAR)
-x
--strip-component
=
1
-f
$(FIXED_TARFILE_LOCATION)
/48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz
$(GNUTAR)
-x
--strip-component
=
1
-f
$(FIXED_TARFILE_LOCATION)
/48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz
$(GNUPATCH)
-p0
<
$(SRCDIR)
/clucene/patches/clucene-internal-zlib.patch
$(GNUPATCH)
-p0
<
$(SRCDIR)
/clucene/patches/clucene-internal-zlib.patch
$(GNUPATCH)
-p0
<
$(SRCDIR)
/clucene/patches/clucene-warnings.patch
$(GNUPATCH)
-p0
<
$(SRCDIR)
/clucene/patches/clucene-warnings.patch
$(GNUPATCH)
-p0
<
$(SRCDIR)
/clucene/patches/clucene-gcc-atomics.patch
#FIXME ?, our rules expect .cxx
#FIXME ?, our rules expect .cxx
for
i
in
`
find
.
-name
"*.cpp"
`
;
do
mv
$$
i
$$
{
i%%cpp
}
cxx
;
done
for
i
in
`
find
.
-name
"*.cpp"
`
;
do
mv
$$
i
$$
{
i%%cpp
}
cxx
;
done
ifneq
($(OS),WNT)
ifneq
($(OS),WNT)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment