[aot] Rewrite the AOT profiler. (#4176)
[mono.git] / mcs / class / corlib / Makefile
index 4d40d3371252ddfd8514b5835d17f42b0de7633b..e466678a17f65294bab12f26c131e732dc731aba 100644 (file)
@@ -20,6 +20,10 @@ $(error Unknown framework version)
 endif
 endif
 
+ifeq ($(PROFILE),build)
+CSC_RUNTIME_FLAGS=--profile=aot:output=$(topdir)/class/lib/build/csc.aotprofile
+endif
+
 RESOURCE_STRINGS = ../referencesource/mscorlib/mscorlib.txt
 RESX_RESOURCE_STRING = ../../../external/corefx/src/System.ValueTuple/src/Resources/Strings.resx