File tree Expand file tree Collapse file tree 5 files changed +12
-181
lines changed Expand file tree Collapse file tree 5 files changed +12
-181
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,18 @@ generate()
54
54
{
55
55
download_llvm
56
56
57
+
58
+ if [ " $target_framework " = " " ]; then
59
+ if command -v dotnet & > /dev/null
60
+ then
61
+ version=$( dotnet --version)
62
+ major_minor=$( echo $version | awk -F. ' {print $1"."$2}' )
63
+ target_framework=" net$major_minor "
64
+ else
65
+ echo " .NET is not installed, cannot lookup up target framework version."
66
+ fi
67
+ fi
68
+
57
69
if [ " $os " = " linux" ] || [ " $os " = " macosx" ]; then
58
70
" $builddir /premake.sh" --file=" $builddir /premake5.lua" gmake2 --os=$os --arch=$platform --configuration=$configuration --target-framework=$target_framework " $@ "
59
71
fi
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ workspace "CppSharp"
53
53
if EnabledManagedProjects () then
54
54
include (srcdir .. " /Core" )
55
55
include (srcdir .. " /AST" )
56
- -- include (srcdir .. "/ASTViewer")
57
56
include (srcdir .. " /CppParser/Bindings" )
58
57
include (srcdir .. " /CppParser/Bootstrap" )
59
58
include (srcdir .. " /CppParser/ParserGen" )
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments