Add support for LLVM integrated build as part of Visual Studio solution
commit269d02cf5b3c906954bbba944fc9d5918fa1ad75
authorlateralusX <lateralusx.github@gmail.com>
Tue, 6 Nov 2018 15:23:56 +0000 (6 16:23 +0100)
committerlateralusX <lateralusx.github@gmail.com>
Mon, 12 Nov 2018 14:16:14 +0000 (12 15:16 +0100)
treeb0d789dcf9579773bbbf5929272f1d590f41b6a9
parentf038e7cd8a4edcfc9ebbfb8dfd0b595fdcaada15
Add support for LLVM integrated build as part of Visual Studio solution
build. LLVM build follows similar pattern as BTLS build and will be build
as part of regular Visual Studio build Mono runtime if LLVM has been enabled
through the autogen.sh, --enable-llvm or –with-llvm argument. It is also
supports msbuild properties MONO_ENABLE_LLVM, MONO_EXTERNAL_LLVM_CONFIG,
if Visual Studio Mono runtime has been built without using autogen.sh.
When just using –enable-llvm, LLVM build will try to build internal LLVM
branch under external/llvm or if override has been set in props file
(using MONO_INTERNAL_LLVM_SOURCE_DIR), an alternative LLVM source
directory path. If –with-llvm has been used pointing to an llvm-config.exe,
no internal LLVM will be build, but the external LLVM build will be used.
Needed LLVM executables (opt.exe, llc.exe) will be installed into regular
Visual Studio Mono runtime build output directory.

The internal Mono LLVM 6.0 release will build as part of changes to this
commit, but it has not yet been fixed to work as expected during runtime.
That work will be done in different commit. The Mono LLVM 3.6 branch will
however work as expected for Windows x64 and can be setup and used using
–with-llvm argument or build as part of Visual Studio build Mono runtime
by enabling msbuild properties, MONO_ENABLE_LLVM and
MONO_INTERNAL_LLVM_SOURCE_DIR.
14 files changed:
msvc/build-external-btls.vcxproj
msvc/build-external-llvm.bat [new file with mode: 0644]
msvc/build-external-llvm.vcxproj [copied from msvc/build-external-btls.vcxproj with 77% similarity]
msvc/build-init.vcxproj
msvc/libmini-llvm.targets
msvc/libmini.vcxproj
msvc/libmono-dynamic.vcxproj
msvc/libmonodac.vcxproj
msvc/mono.external.targets [new file with mode: 0644]
msvc/mono.props
msvc/mono.sln
msvc/mono.vcxproj
msvc/winsetup.bat
winconfig.h