tornavis/extern
Ray Molenkamp 81060ff6b2 Windows: Add support for building with clang.
This commit contains the minimum to make clang build/work with blender, asan and ninja build support is forthcoming

Things to note:

1) Builds and runs, and is able to pass all tests (except for the freestyle_stroke_material.blend test which was broken at that time for all platforms by the looks of it)

2) It's slightly faster than msvc when using cycles. (time in seconds, on an i7-3370)

victor_cpu
	msvc:3099.51
	clang:2796.43

pavillon_barcelona_cpu
	msvc:1872.05
	clang:1827.72

koro_cpu
	msvc:1097.58
	clang:1006.51

fishy_cat_cpu
	msvc:815.37
	clang:722.2

classroom_cpu
	msvc:1705.39
	clang:1575.43

bmw27_cpu
	msvc:552.38
	clang:561.53

barbershop_interior_cpu
	msvc:2134.93
	clang:1922.33

3) clang on windows uses a drop in replacement for the Microsoft cl.exe (takes some of the Microsoft parameters, but not all, and takes some of the clang parameters but not all) and uses ms headers + libraries + linker, so you still need visual studio installed and will use our existing vc14 svn libs.

4) X64 only currently, X86 builds but crashes on startup.

5) Tested with llvm/clang 6.0.0

6) Requires visual studio integration, available at https://github.com/LazyDodo/llvm-vs2017-integration

7) The Microsoft compiler spawns a few copies of cl in parallel to get faster build times, clang doesn't, so the build time is 3-4x slower than with msvc.

8) No openmp support yet. Have not looked at this much, the binary distribution of clang doesn't seem to include it on windows.

9) No ASAN support yet, some of the sanitizers can be made to work, but it was decided to leave support out of this commit.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D3304
2018-05-28 14:34:47 -06:00
..
Eigen3 Windows: Add support for building with clang. 2018-05-28 14:34:47 -06:00
binreloc dd upstream information to libraries 2016-05-25 22:27:53 +10:00
bullet2 Windows: Add support for building with clang. 2018-05-28 14:34:47 -06:00
ceres Glog/gflags: Reduce amount of local modifications 2018-03-23 14:38:02 +01:00
clew Update CLERW to the latest version 2017-03-24 09:43:03 +01:00
cuew Update CUEW to latest version 2018-02-28 03:03:12 +01:00
curve_fit_nd Cleanup: doxygen comments 2018-03-14 02:08:07 +11:00
gflags Glog/gflags: Reduce amount of local modifications 2018-03-23 14:38:02 +01:00
glew Remove SCons building system 2016-01-04 14:20:48 +05:00
glew-es Remove SCons building system 2016-01-04 14:20:48 +05:00
glog Glog/gflags: Reduce amount of local modifications 2018-03-23 14:38:02 +01:00
gmock Update Google libraries 2018-03-22 16:10:08 +01:00
gtest Update Google libraries 2018-03-22 16:10:08 +01:00
libopenjpeg Revert "OpenJPEG: update to 2.1 from 1.5" 2016-07-12 17:38:26 +02:00
lzma Silence some annoying warnings when doing full build with strict flags 2016-04-22 10:59:15 +02:00
lzo Remove SCons building system 2016-01-04 14:20:48 +05:00
rangetree Cleanup: harmless mistake in rangetree 2016-11-20 09:11:26 +11:00
recastnavigation CMake: use signed char for recastnavigation 2016-05-19 07:36:32 +10:00
sdlew Forgot this in previous commit 2016-05-24 11:48:19 +02:00
wcwidth Add upstream information to wcwidth library 2016-06-03 02:43:24 +10:00
xdnd dd upstream information to libraries 2016-05-25 22:27:53 +10:00
CMakeLists.txt Remove Carve boolean 2018-02-08 15:37:44 +01:00