[Libreoffice-commits] core.git: oox/Library_oox.mk
Tor Lillqvist
tml at collabora.com
Tue May 13 04:26:29 PDT 2014
oox/Library_oox.mk | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
New commits:
commit 70c355dc46caaf73c708c43d3eb744373e4d5ebc
Author: Tor Lillqvist <tml at collabora.com>
Date: Tue May 13 11:26:22 2014 +0300
Work around another seeminly random mis-optimization by Apple's Clang with -Oz
If it wasn't for the desperate need to minimize code size for LO-based
iOS apps, I definitely wouldn't use -Oz in gb_COMPILERDEFAULTOPTFLAGS
(in solenv/gbuild/platform/IOS_ARM_GCC.mk).
Change-Id: Icb231b5f30b32afe1c0f3b43e5744bf0e41e96df
diff --git a/oox/Library_oox.mk b/oox/Library_oox.mk
index 4df15bc..4f4a35b 100644
--- a/oox/Library_oox.mk
+++ b/oox/Library_oox.mk
@@ -129,7 +129,6 @@ $(eval $(call gb_Library_add_exception_objects,oox,\
oox/source/drawingml/clrschemecontext \
oox/source/drawingml/clrscheme \
oox/source/drawingml/colorchoicecontext \
- oox/source/drawingml/color \
oox/source/drawingml/connectorshapecontext \
oox/source/drawingml/customshapegeometry \
oox/source/drawingml/customshapepresetdata \
@@ -292,4 +291,19 @@ $(eval $(call gb_Library_add_exception_objects,oox,\
oox/source/vml/vmltextbox \
))
+ifeq ($(OS),IOS)
+# Either a compiler bug in Xcode 5.1.1 or some hard-to-spot undefined
+# behaviour in the source code... Compiling this source file with
+# optimization causes some Smart Art images to end up with completely
+# wrong colour, some even totally black.
+$(eval $(call gb_Library_add_cxxobjects,oox,\
+ oox/source/drawingml/color \
+ , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
+))
+else
+$(eval $(call gb_Library_add_exception_objects,oox,\
+ oox/source/drawingml/color \
+))
+endif
+
# vim: set noet sw=4 ts=4:
More information about the Libreoffice-commits
mailing list