Windows: Add support for building with clang.
[blender.git] / build_files / windows / configure_msbuild.cmd
index 28884ce2fd7997974d5e30c8f7994ca174c8cc78..95a8882a9ab4e5c38516940551fbb60169e6533e 100644 (file)
@@ -4,6 +4,10 @@ if "%BUILD_ARCH%"=="x64" (
        set MSBUILD_PLATFORM=x64
 ) else if "%BUILD_ARCH%"=="x86" (
        set MSBUILD_PLATFORM=win32
+       if "%WITH_CLANG%"=="1" (
+               echo Clang not supported for X86
+               exit /b 1
+       )
 )
 
 if NOT EXIST %BUILD_DIR%\nul (
@@ -42,6 +46,7 @@ if "%MUST_CONFIGURE%"=="1" (
 
 echo call "%VCVARS%" %BUILD_ARCH% > %BUILD_DIR%\rebuild.cmd
 echo "%CMAKE%" . >> %BUILD_DIR%\rebuild.cmd
+echo echo %%TIME%% ^> buildtime.txt >> %BUILD_DIR%\rebuild.cmd
 echo msbuild ^
        %BUILD_DIR%\Blender.sln ^
        /target:build ^
@@ -55,3 +60,4 @@ echo msbuild ^
        /property:Configuration=%BUILD_TYPE% ^
        /verbosity:minimal ^
        /p:platform=%MSBUILD_PLATFORM% >> %BUILD_DIR%\rebuild.cmd
+echo echo %%TIME%% ^>^> buildtime.txt >> %BUILD_DIR%\rebuild.cmd
\ No newline at end of file