From d37796c71c6aa45c8712d77248d3889b5e474ea8 Mon Sep 17 00:00:00 2001 From: lateralusX Date: Thu, 14 Jun 2018 12:43:51 +0200 Subject: Add LLVM AOT/Full AOT support on Windows x64. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Uses mono LLVM master branch, build using cmake and VisualStudio 2015/2017. Commit adds support for AOT/Full AOT LLVM codegen for Windows x64 Visual Studio build mono runtime. Normal configure/make using cygwin won’t support LLVM and will trigger an error if configured. In order to build using LLVM first mono LLVM master branch must be build using static linked LLVM configuration (dynamic loading can be added later), NOTE mono LLVM build needs to include the following commit, https://github.com/mono/llvm/commit/9b92b4b87607e137266f84dc307181b8842fe54a in order to successfully build on Windows x64. Build mono LLVM branch using the following cmake configuration: -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ZLIB=OFF -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_CROSSCOMPILING=False -DCMAKE_SYSTEM_NAME=Windows Use cmake with -G "Visual Studio 14 2015 Win64" to generate VS 2015 x64 targets. NOTE, if mono runtime is build using VS 2017, then LLVM should be build using the same VS version using -G "Visual Studio 15 2017 Win64" To enable LLVM build in mono.sln, set MONO_ENABLE_LLVM to “true” and make sure MONO_LLVM_INSTALL_DIR_PREFIX points to the install directory used in LLVM build above, default msvc/dist/llvm. Above LLVM properties can also be set if build using msbuild. A sample LLVM configure script has been included in msvc/llvm-cmake-config.bat. --- msvc/build-init.vcxproj.filters | 1 - 1 file changed, 1 deletion(-) (limited to 'msvc/build-init.vcxproj.filters') diff --git a/msvc/build-init.vcxproj.filters b/msvc/build-init.vcxproj.filters index bcde289799b..4cdc322a7b1 100644 --- a/msvc/build-init.vcxproj.filters +++ b/msvc/build-init.vcxproj.filters @@ -1,7 +1,6 @@  - \ No newline at end of file -- cgit v1.2.3