Dimitar Dobrev
0a15871751
Add an option for building with Visual Studio 2019
...
Fixes https://github.com/mono/CppSharp/issues/1390 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
af01c86f7b
Fix GCC path detection for Ubuntu 20.
...
The path scheme changed in recent Ubuntu versions.
Previously, C++ includes would be found under `/usr/include/c++/9.0`,
but now they are found in `/usr/include/c++/9`.
Change our path detection logic to look for this.
Fixes https://github.com/mono/CppSharp/issues/1392 .
6 years ago
Dimitar Dobrev
07763331e2
Move libraries to a new class for linking options
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
fbbda2020f
Remove the direct usages of the parsing options
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
be73e994bc
Implement logic for -fgnuc-version= argument required by LLVM.
...
Signed-off-by: Joao Matos <joao@tritao.eu>
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
Joao Matos
ac7bdb2585
Refactor Clang builtins directory logic and move it to the managed side.
...
This now matches systems Clang includes order on macOS which fixes a bug.
Signed-off-by: Joao Matos <joao@tritao.eu>
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Joao Matos
7df1623e6d
Cleanup Clang resource directory lookup logic.
...
Now the logic is more standard across platforms, we always re-use the builtin bundled headers.
Fixes https://github.com/mono/CppSharp/issues/1259 .
7 years ago
Dimitar Dobrev
8fca42afe5
Enable Clang-based look-up for system includes by default
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Joao Matos
c6afb4d1a0
Cleaned up code formatting in ParserOptions.SetupLinux().
8 years ago
Joao Matos
ea7023dfad
Remove ParserOptions.Abi since its misleading as it serves no purpose.
8 years ago
Joao Matos
9a23f51d91
Fixed missing options copy in ParserOptions copy constructor.
8 years ago
Joao Matos
e9005f6eb2
Implemented Clang's MSVC toolchain lookup mode with `ForceClangToolchainLookup`.
8 years ago
Joao Matos
794b276cfb
Added `ForceClangToolchainLookup` option to force to use Clang's toolchain lookup code.
8 years ago
Joao Matos
bd4dec1586
Extract `ParserOptions` cloning code into a copy constructor.
8 years ago
Rokas Kupstys
c41a2dd2af
Add one more include path which linux usually expects.
9 years ago
Dimitar Dobrev
fceb204a98
Fixed the generated C# for members of types nested in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
573818f33e
Fixed a regression, a crash, when generating the parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Rokas Kupstys
b90fb52525
Re-added linux include path that was removed by mistake.
9 years ago
Rokas Kupstys
86f2c59ec5
Tweak linux include dirs, previous change broke GCC7 include dirs on archlinux.
9 years ago
Rokas Kupstys
7a3adcd401
Some linux distributions use `major.minor.patch` and some use `major.minor` for versioning include dirs. Add them all.
9 years ago
Rokas Kupstys
aa33609d45
Clean up linux includes setup.
...
Includes setup was moved to ParserOptions.cs and is used just like `SetupMSVC()` and `SetupXcode()`. Native compiler is queried for it's type and version. Correct include paths are set up in cases where system has multiple compilers installed as well.
9 years ago
Dimitar Dobrev
5e17200af8
Moved the method for building parser options specific to a file.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
f992cd8280
Removed the out parameter when looking for a version of Visual Studio.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Victor Peter Rouven Müller
9edd7819c2
Add C++17 to the parser options
...
Just to complete the list @tritao 😄
9 years ago
Joao Matos
e1200bc577
[parser] Refactor the parser layer.
...
Removes some useless abstractions and unused code.
Signed-off-by: Joao Matos <joao@tritao.eu>
9 years ago
Dimitar Dobrev
5aaa0a0351
Fixed a crash when trying to use a VS version missing from the system.
...
Fixes https://github.com/mono/CppSharp/issues/922 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
27efa2ec87
Fixed unreachable code warning.
9 years ago
Mohit Mohta
3e8b15c42c
Made the C/C++ language switches adjustable in managed code. ( #895 )
9 years ago
Mohit Mohta
fa0d129000
Moved the definition of SetupArguments before SetupIncludes ( #894 )
9 years ago
Mohit Mohta
5227e517fc
Added an option to enable or disable RTTI ( #892 )
...
Fixes #819
9 years ago
Dimitar Dobrev
617e7c78d8
Restored the overload of SetupMSVC with a parameter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Mohit Mohta
65d6c49e1b
Making the code run properly from a different working directory ( #891 )
9 years ago
Mohit Mohta
416c67215c
Added passage of VS Version selected at config time to the build ( #886 )
...
Fixes #815
Fixes #814
9 years ago
realvictorprm
8f8031584c
Added complete support for VS 2017
10 years ago
Dimitar Dobrev
b2a872f431
Merged the passes for properties and made the result non-optional.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
749c2b17ec
Renamed ParserOptions to CppParserOptions and ParserOptions2 to ParserOptions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
19fb6ca7d6
Fold toolchain parser setup to parser options.
10 years ago
Joao Matos
a77bc2a91f
Separate parser options from driver options.
...
This will break API compatibility, you will have to update your options setup code.
10 years ago