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
082349654e
Do not try to get Git revision in `git.rev_parse` if the directory is not a repo.
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
Joao Matos
460e98bd93
[build] Update to a Vagrant box that actually works.
8 years ago
Joao Matos
6443e811c3
[build] Update provision scripts deprecated Premake code.
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
e72661ba24
Fixed the check for Vagrant environment on build scripts.
8 years ago
Joao Matos
4fff5854c2
Update CMake version and do provisioning on Linux.
8 years ago
Joao Matos
bd2b22c580
Update build process utilities to work with Lua 5.2 in up-to-date Premake.
8 years ago
Joao Matos
709f431f9e
Upgrade the Vagrant and provisioning script to Ubuntu 16.06.
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
0f708fec14
Improved printing of HTTP download progress on build scripts.
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
1893c61537
Update provision scripts to use CMake 3.6.1 and download the package on Linux.
9 years ago
João Matos
af109207bd
Fixed CMake path on OSX when building LLVM.
9 years ago
João Matos
d4b1b091c6
Update provisioning to CMake 3.6.0.
9 years ago
Dimitar Dobrev
f986963a3c
Fixed the display of progress while downloading Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
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
efcb812c6c
Fixed outputof to redirect all standard streams.
...
Workaround until https://github.com/premake/premake-core/pull/428 is closed.
10 years ago
Joao Matos
98bc0b8143
Return a process exit code from execute.
...
Should fix the build.
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