Dimitar Dobrev
2fe23f3e0a
Test Linux CI
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Lorenzo Delana
dfa243644b
force bash use to avoid `./premake5-linux: 3: ./premake5-linux: Bad substitution` error if other default shell in the system
5 years ago
João Matos
bd783b1cd0
Add debug option and flags to the Premake build and compile scripts.
5 years ago
Dimitar Dobrev
c7de36450c
Update the version of Mono used for builds (CI)
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Ali Alamiri
344656c787
Move the GenerateInclude logic to GetTypeReference ( #1319 )
...
Improve generation of forward references and includes in C++/CLI.
Move the GenerateInclude logic to GetTypeReference so that an include is also generated for visited types of an ASTRecord that are forward declared, and come from typedef of ignored class template.
Co-authored-by: Build Agent <admin@sage.com>
5 years ago
Dimitar Dobrev
8b3eadf6de
Simplify the structure of the LLVM package
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
d110a2f045
Fix Mono not being found on the PATH on recent macOS versions.
5 years ago
Dimitar Dobrev
299cb912cc
Update LLVM to the latest version
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
36f754116f
Fix a syntax error in CMake listing Clang modules
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
fe8d0d70f8
Enable building lld as part of LLVM
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
067827cf29
Restore modules needed for compiling with Clang
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
454a46ed1c
Support Visual Studio 2019 for building Clang
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
f422ce27ba
Delete the no longer used Clang commit
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 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>
6 years ago
Joao Matos
4862827e7d
Always re-create the Clang resource directory when building.
...
This makes sure that the copy is always done correctly, due to the Premake bug.
6 years ago
Joao Matos
7aa62596df
Remove old workaround for testing issue that does not seem necessary anymore.
6 years ago
Joao Matos
1f4595dfbe
Workaround Premake issue when copying the resource include directories at build time.
...
Related to: https://github.com/premake/premake-core/issues/1232
6 years ago
Joao Matos
8278efd338
Add options to disable tests and examples from the build.
6 years ago
Dimitar Dobrev
96d231e5d4
Generate projects for .NET 4.7 to use new features
...
An example is LPUTF8Str which can be used for marshalling UTF-8 strings.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
86464a378d
Build the generator before test bindings for easy testing
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
d24ef35949
Make the default build for Windows 64-bit
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
c579b65a3b
Update LLVM/Clang
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
fe4d247713
Sped the LLVM build on Windows up by parallelizing
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
304d673bf7
Add a generic pointer to resolve ambiguity
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
5c4f3be5fb
Use MSBuild when building LLVM on Windows due to PDB issues with Ninja.
6 years ago
Dimitar Dobrev
12642f9a42
Fixed the generated C# when an unsigned enum is assigned a negative value.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
751edf7488
Keep Clang libTooling libs when packaging LLVM.
7 years ago
Joao Matos
c6f3501f05
Sort LLVM CMake options.
7 years ago
Joao Matos
68db2a8e39
Fixed AST viewer to compile on Linux.
7 years ago
Joao Matos
b4f7459531
Improve error handling in build scripts `UseClang()`.
7 years ago
Joao Matos
fdb7ddabdf
Initial integration of Clang AST viewer GUI tool.
7 years ago
Joao Matos
5dcdfa66f3
Minor build changes.
7 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
7 years ago
Joao Matos
c3629a2aad
Initial support for building under .NET Core.
7 years ago
Dimitar Dobrev
eaf6a8e450
Decreased the build time on the Linux CI.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
21d2dbdbe5
Fixed the build of the parser when its path has spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
1356b9755d
Updated to LLVM/Clang revisions 348759/348755 respectively.
...
This fixes the parsing of the headers for MinGW 7.3.0 64-bit.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Joao Matos
e88b1a8080
Fixed LLVM/Clang tar.gz archive extraction using 7-Zip on Windows.
7 years ago
Joao Matos
f0d3e731ad
Fixed Windows SDK version detection in build scripts.
7 years ago
Joao Matos
7eb12691d3
Update Windows build of Premake to official alpha 13 binary.
7 years ago
Dimitar Dobrev
f254951b03
Excluded many unused modules when building LLVM and Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
c8536b4141
Updated to LLVM/Clang revisions 339502/339494 respectively.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Aybe
066e8fc703
Preliminary script for building 32-bit Nuget package ( #1015 )
8 years ago
João Matos
5c70b418f3
Update VS check when downloading pre-compiled LLVM packages.
...
Fixes https://github.com/mono/CppSharp/issues/1032 .
8 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`.
8 years ago
Rokas Kupstys
5a190bfb1b
Explicitly link to libstdc++ on linux.
...
In some environments using secondary installed compiler version does not link to libstdc++ automatically, which results in `DllNotFoundException`.
8 years ago
Rokas Kupstys
e5bc151c78
All arguments passed to `build/Compile.sh` are passed to premake.
...
Allows more fine-grained build customization when using this shellscript for compiling.
8 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.
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
Rokas Kupstys
d4c4050157
get_llvm_build_dir() returns "build" subdir if it exists, if not - subdir with package name.
8 years ago