josetr
73f334c90e
Reduce number of "download progress" messages. ( #1482 )
6 years ago
Dimitar Dobrev
2049d52f9c
Fix passing of CMake options to LLVM on Windows
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
5ef13ac6e5
Pack the lld headers as well
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
João Matos
bd783b1cd0
Add debug option and flags to the Premake build and compile scripts.
7 years ago
Dimitar Dobrev
8b3eadf6de
Simplify the structure of the LLVM package
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
36f754116f
Fix a syntax error in CMake listing Clang modules
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
fe8d0d70f8
Enable building lld as part of LLVM
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
067827cf29
Restore modules needed for compiling with Clang
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
454a46ed1c
Support Visual Studio 2019 for building Clang
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Joao Matos
eab2620c18
Update LLVM to the latest version.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
Signed-off-by: Joao Matos <joao@tritao.eu>
7 years ago
Dimitar Dobrev
d24ef35949
Make the default build for Windows 64-bit
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
fe4d247713
Sped the LLVM build on Windows up by parallelizing
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Joao Matos
5c4f3be5fb
Use MSBuild when building LLVM on Windows due to PDB issues with Ninja.
8 years ago
Joao Matos
751edf7488
Keep Clang libTooling libs when packaging LLVM.
8 years ago
Joao Matos
c6f3501f05
Sort LLVM CMake options.
8 years ago
Joao Matos
4fcfe4e4eb
Build changes.
...
- Added support for building with Clang and LLD
- Switched to use csc.exe Roslyn compiler under Mono
- Disable most of the support for explicit pre-C++11 ABI since we do not
need it anymore
8 years ago
Joao Matos
e88b1a8080
Fixed LLVM/Clang tar.gz archive extraction using 7-Zip on Windows.
8 years ago
Dimitar Dobrev
f254951b03
Excluded many unused modules when building LLVM and Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
João Matos
5c70b418f3
Update VS check when downloading pre-compiled LLVM packages.
...
Fixes https://github.com/mono/CppSharp/issues/1032 .
9 years ago
Rokas Kupstys
efc77924cc
Add compiler/abi information to LLVM package names on linux.
...
Compiler kind (always gcc for now) and version (4.8/4.9/5/6/7) is now always included in llvm package name. Additionally if `--no-cxx11-abi` flag is passed to premake then package name will end wiht "-no-cxx11".
Prebuilt LLVM binaries package for CI needs renaming to `llvm-9bde5f-linux-x64-gcc-4.8-Release.tar.xz`.
9 years ago
Rokas Kupstys
e8e727d681
Fix linking to LLVM libs on linux, when system has llvm/clang installed. ( #1020 )
...
This change prevents premake from inserting /usr/lib64 search path on linux. GCC does not need this path specified compiler automatically knows where to look for system libs. Insertion of this path causes issues system has clang/llvm libs installed. Build would link to system libraries instead of custom required by CppSharp.
Also this patch revealed that linking to `pthread`, `z` and `tinfo` libraries on linux is not necessary and disabling them in LLVM build config works. Linking to these libs was removed. As you probably have guessed in the past CppSharp would throw `DllNotFoundException` due to missing symbols because it linked to system LLVM libs, not custom in-tree LLVM build.
9 years ago
Rokas Kupstys
1cac2e0d78
Enable cxx11 abi for GCC 4.9+ on linux.
...
GCC version is checked, if version is 4.8 or lower then cxx11 ABI is disabled. Added new `--no-cxx11-abi` option. It explicitly disables cxx11 ABI even on new compilers. This option is also taken into account when building LLVM.
9 years ago
Joao Matos
082349654e
Do not try to get Git revision in `git.rev_parse` if the directory is not a repo.
9 years ago
Joao Matos
9e5b9ab539
Remove extra whitespace.
9 years ago
Rokas Kupstys
02ae1f83fe
Explicitly disable use of libedit, zlib, terminfo and libxml2 in LLVM builds.
...
These libs are not used by current official CppSharp binary distributions of LLVM, however building LLVM locally will pick these libs up and link to them if they are installed on local system. Since premake does not link to any of those libs linking to local LLVM build will cause `DllNotFoundException` due to missing symbols.
9 years ago
Rokas Kupstys
1d4c243522
Cloning llvm from git replaced with downloading archives of exacty commits from github. This is much faster.
9 years ago
Dimitar Dobrev
481bbc0351
Updated to LLVM/Clang revisions 318543/318538 respectively.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
6e55913c5a
Fixed the script for LLVM to handle paths with spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
460e98bd93
[build] Update to a Vagrant box that actually works.
9 years ago
Joao Matos
6443e811c3
[build] Update provision scripts deprecated Premake code.
9 years ago
Dimitar Dobrev
4d177b317d
Switched the Windows CI to Visual Studio 2017.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
653d0efb2c
Updated deprecated os.is() checks in Premake build scripts.
9 years ago
Joao Matos
b52ad8b43f
Update Premake build files to latest syntax.
9 years ago
Joao Matos
e72661ba24
Fixed the check for Vagrant environment on build scripts.
9 years ago
Joao Matos
4fff5854c2
Update CMake version and do provisioning on Linux.
9 years ago
Joao Matos
bd2b22c580
Update build process utilities to work with Lua 5.2 in up-to-date Premake.
9 years ago
Joao Matos
709f431f9e
Upgrade the Vagrant and provisioning script to Ubuntu 16.06.
9 years ago
Joao Matos
1ebbcdf668
Fixed the LLVM build script CMake invocation to work with recent LLVM/Clang revisions.
...
This fixes the dreaded CMake error:
CMake Error at tools/clang/tools/clang-offload-bundler/CMakeLists.txt:18 (add_dependencies):
Cannot add target-level dependencies to non-existent target "clang".
9 years ago
Dimitar Dobrev
d7daed8273
Added support for VS 2017 by updating Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
b28f766d8d
[build] Fixed LLVM compilation script Lua syntax bug.
9 years ago
Joao Matos
b466b17c02
[build] Rework how the target architecture is looked up at build time.
...
We now check the system Mono architecture in non-Windows platforms, this is needed since Mono 5 defaults to amd64.
10 years ago
Joao Matos
9dc880dd6a
Fixed build files to run mono64 in 64-bit non-VS builds.
10 years ago
Joao Matos
d7bc6eb279
Move "arch=" build option to helpers file and provide a default value.
10 years ago
Joao Matos
d6049dc49e
Added support for specifying build target architecture when building LLVM.
...
Fixes https://github.com/mono/CppSharp/issues/694 .
10 years ago
Dimitar Dobrev
021c3d0821
Fixed the build after the suspension of public folders in DropBox.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
3ee3a5b9a2
Implemented mapping of MSVC to VS 2017 in build scripts.
10 years ago
Joao Matos
0c168a59de
Fixed CMake generator name for VS 2017.
10 years ago
Joao Matos
1a634a2a86
Implemented CMake VS2017 generator mapping in LLVM build script.
10 years ago
Joao Matos
649bee2511
Extracted VS version lookup code in build script.
10 years ago
realvictorprm
1662f5108f
Added support for VS 2017 project generation
...
Fixed also the regex for finding ms build tools.
It's required to open the batch files with the developer command prompt
of vs 2017 !
10 years ago