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
411e1802
Kaydet (Commit)
411e1802
authored
Eyl 15, 2014
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
check that ODK headers compile with C++03
Change-Id: Ief191a5bbbdca45aaaa8ae5bcc395124ed189796
üst
a309ddbb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
CppunitTest_odk_checkapi.mk
odk/CppunitTest_odk_checkapi.mk
+1
-0
checkapi.cxx
odk/qa/checkapi/checkapi.cxx
+6
-0
com_GCC_defs.mk
solenv/gbuild/platform/com_GCC_defs.mk
+8
-0
com_MSC_defs.mk
solenv/gbuild/platform/com_MSC_defs.mk
+3
-0
No files found.
odk/CppunitTest_odk_checkapi.mk
Dosyayı görüntüle @
411e1802
...
...
@@ -27,6 +27,7 @@ $(eval $(call gb_CppunitTest_disable_compiler_plugins,odk_checkapi))
$(eval $(call gb_CppunitTest_add_cxxflags,odk_checkapi,\
$(gb_CXXFLAGS_Wundef) \
$(gb_CXX03FLAGS) \
))
$(eval $(call gb_CppunitTest_use_libraries,odk_checkapi,\
...
...
odk/qa/checkapi/checkapi.cxx
Dosyayı görüntüle @
411e1802
...
...
@@ -20,6 +20,12 @@
#error Build system problem, RTL_USING using should not be set here.
#endif
// Additionally, check that public API headers build also with C++03.
//#if __cplusplus >= 201103L
//#error Build system problem, C++03 should be used here.
//#endif
// This module contains no tests, this is for the build system.
#include <cppunit/plugin/TestPlugIn.h>
...
...
solenv/gbuild/platform/com_GCC_defs.mk
Dosyayı görüntüle @
411e1802
...
...
@@ -97,6 +97,14 @@ endif
gb_CFLAGS_WERROR := $(if $(ENABLE_WERROR),-Werror)
# This is the default in non-C++11 mode
ifeq ($(COM_GCC_IS_CLANG),TRUE)
# doesn't know gnu++03 and this seems to be the same anyway
gb_CXX03FLAGS := -std=gnu++98 -Werror=c++11-extensions -Wno-c++11-long-long
else
gb_CXX03FLAGS := -std=gnu++03 -pedantic-errors -Wno-long-long
endif
ifeq ($(ENABLE_LTO),TRUE)
ifeq ($(COM_GCC_IS_CLANG),TRUE)
gb_LTOFLAGS := -flto
...
...
solenv/gbuild/platform/com_MSC_defs.mk
Dosyayı görüntüle @
411e1802
...
...
@@ -247,6 +247,9 @@ gb_STDLIBS := \
gb_CFLAGS_WERROR := $(if $(ENABLE_WERROR),-WX)
# there does not seem to be a way to force C++03 with MSVC
gb_CXX03FLAGS :=
gb_LinkTarget_EXCEPTIONFLAGS := \
-DEXCEPTIONS_ON \
-EHa \
...
...
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