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.
8 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.
8 years ago
Joao Matos
9e5b9ab539
Remove extra whitespace.
8 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.
8 years ago
Rokas Kupstys
1d4c243522
Cloning llvm from git replaced with downloading archives of exacty commits from github. This is much faster.
8 years ago
Dimitar Dobrev
481bbc0351
Updated to LLVM/Clang revisions 318543/318538 respectively.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
6e55913c5a
Fixed the script for LLVM to handle paths with spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
4d177b317d
Switched the Windows CI to Visual Studio 2017.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
653d0efb2c
Updated deprecated os.is() checks in Premake build scripts.
8 years ago
Joao Matos
b52ad8b43f
Update Premake build files to latest syntax.
8 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".
8 years ago
Dimitar Dobrev
d7daed8273
Added support for VS 2017 by updating Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
b28f766d8d
[build] Fixed LLVM compilation script Lua syntax bug.
8 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.
8 years ago
Joao Matos
9dc880dd6a
Fixed build files to run mono64 in 64-bit non-VS builds.
8 years ago
Joao Matos
d7bc6eb279
Move "arch=" build option to helpers file and provide a default value.
8 years ago
Joao Matos
d6049dc49e
Added support for specifying build target architecture when building LLVM.
...
Fixes https://github.com/mono/CppSharp/issues/694 .
8 years ago
Dimitar Dobrev
021c3d0821
Fixed the build after the suspension of public folders in DropBox.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
3ee3a5b9a2
Implemented mapping of MSVC to VS 2017 in build scripts.
8 years ago
Joao Matos
0c168a59de
Fixed CMake generator name for VS 2017.
8 years ago
Joao Matos
1a634a2a86
Implemented CMake VS2017 generator mapping in LLVM build script.
8 years ago
Joao Matos
649bee2511
Extracted VS version lookup code in build script.
8 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 !
8 years ago
zillemarco
049e777b07
Fixed DownloadDeps.bat with Visual Studio
...
DownloadDeps.bat looked for a string in the form like "Version
<number>.<number>.<number>.<number> for <arch>" but this doesn't work
for installations of Visual Studio that are not English.
Changed the regex to make it user language agnostic.
9 years ago
Joao Matos
f5ea7a1d50
Minor whitespace fixes.
9 years ago
Joao Matos
26b4dfa549
Improve diagnostics for unavailable pre-compiled LLVM packages.
...
Fixes https://github.com/mono/CppSharp/issues/693 .
9 years ago
Joao Matos
5dac663926
Remove unneeded dependency on our own Premake helpers.
9 years ago
Joao Matos
1f25e02d35
Match minor version when looking up VS version.
...
Fixes AppVeyor build.
9 years ago
Joao Matos
42b590462d
Update 7-Zip packaging step to use maximum compression level.
9 years ago
Joao Matos
1899c36959
Auto-detect 7-Zip Windows path in LLVM packaging scripts.
9 years ago
Joao Matos
60921b1154
Switch to LLVM/Clang Github Git mirrors as they're more reliable.
9 years ago
João Matos
0d6724f09c
Copy Clang builtin headers when packaging the LLVM CI packages.
9 years ago
João Matos
af109207bd
Fixed CMake path on OSX when building LLVM.
9 years ago
Dimitar Dobrev
448a9217a7
Removed one more redundant component when building Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
07ec0f2677
Modified the LLVM package naming scheme to take into account toolsets.
10 years ago
Joao Matos
7fcc12073e
Improved build script for building LLVM.
10 years ago
Joao Matos
62fe33efad
Improver error handling when executing shell commands in build scripts.
10 years ago
Joao Matos
82dc7639dd
Improved verbosity of download_llvm step.
10 years ago
Joao Matos
cc87e09cff
Added support for multiple configurations of the LLVM binary dependency packages.
10 years ago
Joao Matos
f75b3e1a35
Updated the LLVM packaging scripts to use tar.xz for non-Windows builds.
10 years ago
Joao Matos
dec7cbb2ab
Updated the LLVM build script to work with Vagrant.
10 years ago
Joao Matos
c417c73afd
Updated the LLVM build script to work with Vagrant.
10 years ago
Dimitar Dobrev
133cb16383
Removed unused LLVM/Clang tools in order to speed the build up.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
21e9264e6e
Fixed LLVM archive packaging scripts.
10 years ago
Joao Matos
a2da944401
Fixed OSX CMake configuration in LLVM build scripts.
10 years ago
Joao Matos
ed28d42b4d
Build and packaging fixes for LLVM on Windows using Ninja.
10 years ago
Joao Matos
5f4c554ea7
Fixed Ninja build invocations to use the right build directory.
10 years ago
Joao Matos
779ed9db71
Fourth round at build and packaging scripts.
10 years ago
Joao Matos
56fe4ba2c5
Third round at build and packaging scripts.
10 years ago
triton
de5e364a8a
Second round at build and packaging scripts.
10 years ago