summaryrefslogtreecommitdiff
path: root/psi
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-04-28 20:11:24 +0100
committerRobin Watts <Robin.Watts@artifex.com>2022-04-28 20:11:59 +0100
commitaf5e5951c63ebb6f3d0ab39bc0026113575fc1b6 (patch)
tree3129a46f13b0db24fc26848d71cb611e291d6757 /psi
parentd1a0339f45c355aa04b3168de3a8d7a4e6d63e34 (diff)
downloadghostpdl-af5e5951c63ebb6f3d0ab39bc0026113575fc1b6.tar.gz
Tweak CAL build flags on windows.
Diffstat (limited to 'psi')
-rw-r--r--psi/msvc.mak9
1 files changed, 9 insertions, 0 deletions
diff --git a/psi/msvc.mak b/psi/msvc.mak
index 0841d0b38..f62908040 100644
--- a/psi/msvc.mak
+++ b/psi/msvc.mak
@@ -278,6 +278,15 @@ IMGGENDIR=$(GLGENDIR)
IMGOBJDIR=$(GLOBJDIR)
!endif
+# CAL detects the presence of SSE/AVX2 at runtime. We assume
+# modern windows compilers can build for both, and they will
+# just be disabled automatically if not present. If the compiler
+# can't cope with this, then define CAL_CFLAGS to be empty
+# in the makefile invocation.
+!ifndef CAL_CFLAGS
+CAL_CFLAGS=/DHAVE_SSE4_2 /DHAVE_AVX2
+!endif
+
CONTRIBDIR=.\contrib
# Can we build PCL and XPS and PDF