You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ji...@apache.org on 2020/12/03 18:50:48 UTC

[openoffice] branch AOO42X updated: Only ignore errors with Xcode12 (and later) versions of clang

This is an automated email from the ASF dual-hosted git repository.

jim pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO42X by this push:
     new 2628bec  Only ignore errors with Xcode12 (and later) versions of clang
2628bec is described below

commit 2628bec40818f84bfd49b2cf21adf3161b66cad1
Author: Jim Jagielski <ji...@gmail.com>
AuthorDate: Thu Dec 3 13:49:26 2020 -0500

    Only ignore errors with Xcode12 (and later) versions of clang
    
    (cherry picked from commit ac5edd08c7c24ca6bc3182a68da50631e0f85cf9)
---
 ext_libraries/apr/makefile.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ext_libraries/apr/makefile.mk b/ext_libraries/apr/makefile.mk
index 0f29c60..ea007d9 100644
--- a/ext_libraries/apr/makefile.mk
+++ b/ext_libraries/apr/makefile.mk
@@ -62,10 +62,10 @@ BUILD_ACTION=INCLUDE="$(INCLUDE);./include" USEMAK=1  nmake -f Makefile.win buil
 CONFIGURE_DIR=
 CONFIGURE_ACTION=.$/configure --prefix=$(OUTDIR) --includedir=$(OUTDIR)$/inc$/apr
 
-# Recent versions of clang on macOS break some tests in APR 1.6 (and older)
+# Recent versions of clang (clang-12xxx) on macOS break some tests in APR 1.6 (and older)
 # configure (mostly around testing sizeof) due to errors now being fatal.
-# Work around this by ignoring all errors
-.IF "$(OS)"=="MACOSX"
+# Work around this by ignoring all errors but only with the later versions of Xcode
+.IF "$(OS)"=="MACOSX" && "$(COM)"=="CLANG" && "$(CCNUMVER)" > "001100000003"
 CONFIGURE_FLAGS=CPPFLAGS="-Wno-error=all"
 .ELSE
 CONFIGURE_FLAGS=