Simplify Visual Studio ifdefs

Use _MSC_VER as the intrinsics compile without /arch:SSE2 on x86.
Also avoids applying the same flag to all files which defeated the
purpose of the runtime cpu-detection.

Thanks to Frank B. for the suggestion!

Change-Id: Iae9933a3cee704e663d9bbd53d0fa68e8c025425
This commit is contained in:
James Zern
2011-06-03 11:40:15 -07:00
parent ca7a2fd66d
commit b2b0090b4c
3 changed files with 4 additions and 9 deletions

View File

@ -27,7 +27,6 @@ If cl.exe is in your PATH rerun nmake with ARCH=<arch>.
!IF "$(ARCH)" == "x86"
PLATFORM_LDFLAGS = /SAFESEH
PLATFORM_SSE2 = /arch:SSE2
!ENDIF
#############################################################
@ -43,7 +42,6 @@ LNKDLL = link.exe /DLL
LNKLIB = link.exe /lib
LNKEXE = link.exe
LFLAGS = /nologo /machine:$(ARCH)
CFLAGS = $(CFLAGS) $(PLATFORM_SSE2)
CFGSET = FALSE
!IF "$(OBJDIR)" == ""