From af5e5951c63ebb6f3d0ab39bc0026113575fc1b6 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 28 Apr 2022 20:11:24 +0100 Subject: Tweak CAL build flags on windows. --- psi/msvc.mak | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'psi') 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 -- cgit v1.2.1