-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/6.0.1xx-preview7] [dotnet/msbuild] Add support for using LLV…
…M to build .NET apps. Fixes #11379. (#12176) * [xharness] Add test case for running monotouch-test with LLVM on .NET on device. * [dotnet] Parse MtouchUseLlvm. * [tests] Add helper makefiles for building monotouch-test and MySimpleApp in .NET from the command line. * [tools] Pass the AOTCompiler property to the ComputeAOTArguments linker steps. So that the ComputeAOTArguments can compute the llvm-path value to pass to the AOT compiler (the llvm-path value states where the opt and llc command-line tools are, and they're next to the AOT compiler). * [dotnet] Remove unused AOTCompileTaskBase.AOTData property. * [msbuild/dotnet] Use properties on the _AssembliesToAOT item group to specify output paths. This deduplicates a little bit code to compute the output path. * [tools] Compute the llvm output file and pass it to the AOT compiler / native linker * [msbuild] Remove unused CompileNativeCodeTaskBase.ObjectFiles property. * [msbuild/dotnet] Make sure target Outputs show up in a task Output to make the build work correctly on windows. Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
- Loading branch information
1 parent
29e512d
commit ad40441
Showing
12 changed files
with
129 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
TOP=../../../.. | ||
include ../shared.mk | ||
|
||
include $(TOP)/Make.config | ||
dev: | ||
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64" | ||
|
||
build: | ||
$(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) | ||
run-dev: | ||
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /t:Run" | ||
|
||
run: | ||
$(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) -t:Run | ||
llvm: | ||
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:MtouchUseLlvm=true /p:MtouchLink=SdkOnly /p:Configuration=Release-llvm /bl:@.binlog" | ||
|
||
norm: | ||
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:MtouchLink=SdkOnly /p:Configuration=Release-norm /bl:@.binlog" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
TOP=../../../.. | ||
include $(TOP)/Make.config | ||
|
||
prepare: | ||
$(Q) $(MAKE) -C $(TOP)/tests/dotnet copy-dotnet-config | ||
|
||
reload: | ||
$(Q) rm -Rf $(TOP)/tests/dotnet/packages | ||
$(Q) $(MAKE) -C $(TOP) -j8 all | ||
$(Q) $(MAKE) -C $(TOP) -j8 install | ||
$(Q) git clean -xfdq | ||
|
||
reload-and-build: | ||
$(Q) $(MAKE) reload | ||
$(Q) $(MAKE) build | ||
|
||
reload-and-run: | ||
$(Q) $(MAKE) reload | ||
$(Q) $(MAKE) run | ||
|
||
build: prepare | ||
$(Q) $(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) $(BUILD_ARGUMENTS) | ||
|
||
run: prepare | ||
$(Q) $(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) $(BUILD_ARGUMENTS) -t:Run | ||
|
||
diag: prepare | ||
$(Q) $(DOTNET6) build /v:diag msbuild.binlog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
include ../shared.mk | ||
|
||
dev: | ||
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64" | ||
|
||
llvm: | ||
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:MtouchUseLlvm=true /p:MtouchLink=SdkOnly /p:Configuration=Release-llvm /bl:$@.binlog" | ||
|
||
run-llvm: | ||
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:MtouchUseLlvm=true /p:MtouchLink=SdkOnly /p:Configuration=Release-llvm /bl:$@.binlog /t:Run" | ||
|
||
norm: | ||
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:MtouchLink=SdkOnly /p:Configuration=Release-norm /bl:$@.binlog" | ||
|
||
run-norm: | ||
$(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:MtouchLink=SdkOnly /p:Configuration=Release-norm /bl:$@.binlog /t:Run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
TOP=../../../.. | ||
include $(TOP)/Make.config | ||
|
||
prepare: | ||
$(Q) $(MAKE) -C $(TOP)/tests/dotnet copy-dotnet-config | ||
|
||
reload: | ||
$(Q) rm -Rf $(TOP)/tests/dotnet/packages | ||
$(Q) $(MAKE) -C $(TOP) -j8 all | ||
$(Q) $(MAKE) -C $(TOP) -j8 install | ||
$(Q) git clean -xfdq | ||
|
||
reload-and-build: | ||
$(Q) $(MAKE) reload | ||
$(Q) $(MAKE) build | ||
|
||
reload-and-run: | ||
$(Q) $(MAKE) reload | ||
$(Q) $(MAKE) run | ||
|
||
build: prepare | ||
$(Q) $(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) $(BUILD_ARGUMENTS) | ||
|
||
run: prepare | ||
$(Q) $(DOTNET6) build /bl *.csproj $(MSBUILD_VERBOSITY) $(BUILD_ARGUMENTS) -t:Run | ||
|
||
diag: prepare | ||
$(Q) $(DOTNET6) build /v:diag msbuild.binlog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ad40441
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ [CI Build] Tests failed on Build ❌
Tests failed on Build.
API diff
✅ API Diff from stable
View API diff
API & Generator diff
✅ API Diff (from PR only) (no change)
✅ Generator Diff (no change)
Packages generated
View packages
Test results
1 tests failed, 220 tests passed.
Failed tests
Pipeline on Agent XAMBOT-1027.BigSur'
[release/6.0.1xx-preview7] [dotnet/msbuild] Add support for using LLVM to build .NET apps. Fixes #11379. (#12176)
ad40441
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 Tests failed catastrophically on VSTS: device tests tvOS 🔥
Not enough free space in the host.
Pipeline on Agent
[release/6.0.1xx-preview7] [dotnet/msbuild] Add support for using LLVM to build .NET apps. Fixes #11379. (#12176)
ad40441
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.
Pipeline on Agent
[release/6.0.1xx-preview7] [dotnet/msbuild] Add support for using LLVM to build .NET apps. Fixes #11379. (#12176)
ad40441
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Results were skipped for this run due to provisioning problems Azure Devops. Please contact the bot administrator.
Pipeline on Agent
[release/6.0.1xx-preview7] [dotnet/msbuild] Add support for using LLVM to build .NET apps. Fixes #11379. (#12176)
ad40441
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tests passed on macOS Mac Catalina (10.15) ✅
Tests passed
All tests on macOS X Mac Catalina (10.15) passed.
Pipeline on Agent
[release/6.0.1xx-preview7] [dotnet/msbuild] Add support for using LLVM to build .NET apps. Fixes #11379. (#12176)
ad40441
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tests passed on macOS Mac Mojave (10.14) ✅
Tests passed
All tests on macOS X Mac Mojave (10.14) passed.
Pipeline on Agent
[release/6.0.1xx-preview7] [dotnet/msbuild] Add support for using LLVM to build .NET apps. Fixes #11379. (#12176)
ad40441
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tests passed on macOS Mac High Sierra (10.13) ✅
Tests passed
All tests on macOS X Mac High Sierra (10.13) passed.
Pipeline on Agent
[release/6.0.1xx-preview7] [dotnet/msbuild] Add support for using LLVM to build .NET apps. Fixes #11379. (#12176)