From 0ce67f37ac333c4b62a676f5c0058923cbba2708 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Thu, 6 Sep 2012 06:04:32 -0700 Subject: [PATCH] Use LLVM_VERSION env variable to get LLVM version with MSVC build. Previously, it was set directly in the ispc.vcxproj file. Issue #371. --- buildispc.bat | 4 ++-- ispc.vcxproj | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/buildispc.bat b/buildispc.bat index c06efdc2..ba606faa 100644 --- a/buildispc.bat +++ b/buildispc.bat @@ -2,8 +2,8 @@ REM If LLVM_INSTALL_DIR isn't set globally in your environment, REM it can be set here_ -set LLVM_INSTALL_DIR=c:\users\mmp\llvm-dev -set LLVM_VERSION=3.2 +REM set LLVM_INSTALL_DIR=c:\users\mmp\llvm-dev +REM set LLVM_VERSION=3.2 REM Both the LLVM binaries and python need to be in the path set path=%LLVM_INSTALL_DIR%\bin;%PATH%;c:\cygwin\bin diff --git a/ispc.vcxproj b/ispc.vcxproj index 711ae9c0..a580ce84 100755 --- a/ispc.vcxproj +++ b/ispc.vcxproj @@ -380,7 +380,7 @@ NotUsing Level3 Disabled - NOMINMAX;LLVM_3_1 + NOMINMAX;%LLVM_VERSION% $(LLVM_INSTALL_DIR)\include;.;.\winstuff;%(AdditionalIncludeDirectories) 4146;4800;4996;4355;4624 @@ -398,7 +398,7 @@ MaxSpeed true true - NOMINMAX;LLVM_3_1 + NOMINMAX;%LLVM_VERSION% $(LLVM_INSTALL_DIR)\include;.;.\winstuff;%(AdditionalIncludeDirectories) 4146;4800;4996;4355;4624