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
02ed2608
Kaydet (Commit)
02ed2608
authored
Mar 24, 2013
tarafından
Peter Foley
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add configure option to use clang
Change-Id: Ide63ef8bde7ed739b9bf29e936c01e156e8e3de4
üst
db754e89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
31 deletions
+35
-31
configure.ac
configure.ac
+35
-31
No files found.
configure.ac
Dosyayı görüntüle @
02ed2608
...
@@ -1158,6 +1158,11 @@ AC_ARG_ENABLE(winegcc,
...
@@ -1158,6 +1158,11 @@ AC_ARG_ENABLE(winegcc,
needed for MinGW cross-compilation.]),
needed for MinGW cross-compilation.]),
)
)
AC_ARG_ENABLE(clang,
AS_HELP_STRING([--enable-clang],
[Build using the clang compiler.]),
)
AC_ARG_ENABLE(liblangtag,
AC_ARG_ENABLE(liblangtag,
AS_HELP_STRING([--disable-liblangtag],
AS_HELP_STRING([--disable-liblangtag],
[Disable use of liblangtag, and insted use an own simple
[Disable use of liblangtag, and insted use an own simple
...
@@ -2273,44 +2278,37 @@ if test "$CCACHE" != ""; then
...
@@ -2273,44 +2278,37 @@ if test "$CCACHE" != ""; then
fi
fi
fi
fi
dnl ===================================================================
dnl Checks for Icecream
dnl ===================================================================
if test "$enable_icecream" = "yes"; then
if test -d "/usr/lib/icecc/bin"; then
ICECREAM_HOME="/usr/lib/icecc/"
else
ICECREAM_HOME="/opt/icecream/"
fi
if test -z "$CC"; then
CC="$GCC_HOME/bin/gcc"
fi
if test -z "$CXX"; then
CXX="$GCC_HOME/bin/g++"
fi
fi
dnl ===================================================================
dnl ===================================================================
dnl Checks for C compiler,
dnl Checks for C compiler,
dnl AC_PROG_CC checks for gcc, cc and then cl (if it weren't guarded for win32)
dnl The check for the C++ compiler is later on.
dnl The check for the C++ compiler is later on.
dnl ===================================================================
dnl ===================================================================
if test "$_os" != "WINNT" -a "$WITH_MINGW" != "yes"; then
GCC_HOME_SET="true"
AC_MSG_CHECKING([gcc home])
if test -z "$with_gcc_home"; then
if test "$enable_icecream" = "yes"; then
if test -d "/usr/lib/icecc/bin"; then
GCC_HOME="/usr/lib/icecc/"
else
GCC_HOME="/opt/icecream/"
fi
else
GCC_HOME=`which gcc | $SED -e s,/bin/gcc,,`
GCC_HOME_SET="false"
fi
else
GCC_HOME="$with_gcc_home"
fi
AC_MSG_RESULT($GCC_HOME)
AC_SUBST(GCC_HOME)
if test "$GCC_HOME_SET" = "true"; then
if test -z "$CC"; then
CC="$GCC_HOME/bin/gcc"
fi
if test -z "$CXX"; then
CXX="$GCC_HOME/bin/g++"
fi
fi
fi
dnl The following checks for gcc, cc and then cl (if it weren't guarded for win32)
if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
# AC_PROG_CC sets CFLAGS to -g -O2 if not set, avoid that
# AC_PROG_CC sets CFLAGS to -g -O2 if not set, avoid that
save_CFLAGS=$CFLAGS
save_CFLAGS=$CFLAGS
if test "$enable_clang" = "yes"; then
AC_PATH_PROG(CC,clang)
if test -z "$CC"; then
AC_MSG_ERROR([Clang not found in path. Is it installed?])
fi
fi
AC_PROG_CC
AC_PROG_CC
CFLAGS=$save_CFLAGS
CFLAGS=$save_CFLAGS
fi
fi
...
@@ -5002,6 +5000,12 @@ dnl ===================================================================
...
@@ -5002,6 +5000,12 @@ dnl ===================================================================
if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
# AC_PROG_CXX sets CXXFLAGS to -g -O2 if not set, avoid that
# AC_PROG_CXX sets CXXFLAGS to -g -O2 if not set, avoid that
save_CXXFLAGS=$CXXFLAGS
save_CXXFLAGS=$CXXFLAGS
if test "$enable_clang" = "yes"; then
AC_PATH_PROG(CXX,clang++)
if test -z "$CXX"; then
AC_MSG_ERROR([clang++ not found in path. Is it installed?])
fi
fi
AC_PROG_CXX
AC_PROG_CXX
CXXFLAGS=$save_CXXFLAGS
CXXFLAGS=$save_CXXFLAGS
else
else
...
...
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