From 375fe76d08c3d9ea0e3add881af8e4e7f9b2e019 Mon Sep 17 00:00:00 2001 From: Milos Kotlar Date: Wed, 9 Aug 2023 15:27:45 +0200 Subject: [PATCH] Add LLVM-AOT support to the sample app (#90152) --- src/mono/sample/HelloWorld/HelloWorld.csproj | 9 +++------ src/mono/sample/HelloWorld/Makefile | 9 ++++----- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/mono/sample/HelloWorld/HelloWorld.csproj b/src/mono/sample/HelloWorld/HelloWorld.csproj index ef6aa16..e72a411 100644 --- a/src/mono/sample/HelloWorld/HelloWorld.csproj +++ b/src/mono/sample/HelloWorld/HelloWorld.csproj @@ -18,7 +18,6 @@ - + MibcProfilePath="$(MibcProfilePath)" + UseLLVM="$(MonoEnableLLVM)" + LLVMPath="$(MonoAotCrossDir)"> diff --git a/src/mono/sample/HelloWorld/Makefile b/src/mono/sample/HelloWorld/Makefile index 8441e56..cfb6f07 100644 --- a/src/mono/sample/HelloWorld/Makefile +++ b/src/mono/sample/HelloWorld/Makefile @@ -6,11 +6,10 @@ MONO_CONFIG?=Debug MONO_ARCH?=$(shell . $(TOP)eng/native/init-os-and-arch.sh && echo $${arch}) TARGET_OS?=$(shell . $(TOP)eng/native/init-os-and-arch.sh && echo $${os}) AOT?=false +USE_LLVM?=false StripILCode?=false CompiledMethodsOutputDirectory?= # -#NET_TRACE_PATH= -#PGO_BINARY_PATH= #MIBC_PROFILE_PATH= MONO_ENV_OPTIONS ?= @@ -20,11 +19,11 @@ publish: -c $(MONO_CONFIG) \ -r $(TARGET_OS)-$(MONO_ARCH) \ /p:RunAOTCompilation=$(AOT) \ + /p:MonoEnableLLVM=$(USE_LLVM) \ /p:StripILCode=$(StripILCode) \ /p:CompiledMethodsOutputDirectory=$(CompiledMethodsOutputDirectory) \ - '/p:NetTracePath="$(NET_TRACE_PATH)"' \ - '/p:PgoBinaryPath="$(PGO_BINARY_PATH)"' \ - '/p:MibcProfilePath="$(MIBC_PROFILE_PATH)"' + '/p:MibcProfilePath="$(MIBC_PROFILE_PATH)"' \ + /bl run: publish DOTNET_DebugWriteToStdErr=1 \ -- 2.7.4