summaryrefslogtreecommitdiff
path: root/sc/Library_sc.mk
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2019-10-07 18:02:04 +0530
committerDennis Francis <dennis.francis@collabora.com>2019-10-17 08:07:32 +0200
commit3c2587a152476cbb0ca4a83138a4c34ec8065b32 (patch)
treea43ba7aea0b91c58aa896bf2a82449ca6822e81c /sc/Library_sc.mk
parenta5b394a4c6ce5aa93654ff6d57fc497bcea93001 (diff)
move SSE2sum code to separate cxx file...
and compile it with -arch:SSE2 if Windows. This code however gets called only if cpuid::hasSSE2() is true, so this does not cause problems with machines without SSE2 support. Change-Id: Ice23ac71d4c577b8811b08c74a3ca500a94fdc09 Reviewed-on: https://gerrit.libreoffice.org/80847 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/Library_sc.mk')
-rw-r--r--sc/Library_sc.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/Library_sc.mk b/sc/Library_sc.mk
index d594ca110f6d..9c057eaf6a6d 100644
--- a/sc/Library_sc.mk
+++ b/sc/Library_sc.mk
@@ -98,6 +98,17 @@ $(eval $(call gb_Library_use_libraries,sc,\
xo \
))
+ifeq ($(OS),WNT)
+$(eval $(call gb_Library_add_exception_objects,sc,\
+ sc/source/core/tool/arraysumSSE2, -arch:SSE2 \
+))
+
+else
+$(eval $(call gb_Library_add_exception_objects,sc,\
+ sc/source/core/tool/arraysumSSE2 \
+))
+endif
+
$(eval $(call gb_Library_add_exception_objects,sc,\
sc/source/core/data/attarray \
sc/source/core/data/attrib \