diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-10-16 20:12:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-16 20:12:13 +0300 |
commit | 7a505f2e4005b1a47bba0d3e62f5ccde86f6fa25 (patch) | |
tree | 804997be0698b296d5fda9d80ec52c6642d547dd | |
parent | 0fd450ac6b52ce60f8697a451a8c914e1b238ad4 (diff) |
[mcs] Fix platform-specific build of "build" profile and remove more remnants of the "basic" profile (#11185)
The platform specific build got lost in 8d8fd97dbfc6f4213e0fe9fca7574808dd8496d3 but we need it for monolite. The remnants of the "basic" profile are no longer needed.
-rw-r--r-- | mcs/Makefile | 2 | ||||
-rw-r--r-- | mcs/build/Makefile | 3 | ||||
-rw-r--r-- | mcs/build/library.make | 2 | ||||
-rw-r--r-- | mcs/build/profiles/build.make | 2 | ||||
-rw-r--r-- | mcs/build/rules.make | 4 | ||||
-rw-r--r-- | mcs/class/Facades/subdirs.make | 6 | ||||
-rw-r--r-- | mcs/class/Makefile | 1 | ||||
-rw-r--r-- | mcs/class/Mono.CompilerServices.SymbolWriter/Makefile | 6 | ||||
-rw-r--r-- | mcs/class/System.Core/basic_System.Core.dll.sources | 2 | ||||
-rw-r--r-- | mcs/class/System/basic_System.dll.sources | 4 | ||||
-rw-r--r-- | mcs/class/corlib/Makefile | 6 |
11 files changed, 7 insertions, 31 deletions
diff --git a/mcs/Makefile b/mcs/Makefile index fc041e3a070..ebf2b845708 100644 --- a/mcs/Makefile +++ b/mcs/Makefile @@ -35,7 +35,7 @@ all-local $(STD_TARGETS:=-local): @: dir-check: - @if [ "$(NO_DIR_CHECK)" = "" -a "$(PROFILE)" != "basic" ]; then $(MAKE) -C ../runtime; fi + @if [ "$(NO_DIR_CHECK)" = "" ]; then $(MAKE) -C ../runtime; fi # fun specialty targets diff --git a/mcs/build/Makefile b/mcs/build/Makefile index e708d3df63e..94e6361cb06 100644 --- a/mcs/build/Makefile +++ b/mcs/build/Makefile @@ -29,7 +29,6 @@ common/MonoNativeConfig.cs: common/MonoNativeConfig.cs.in $(wildcard config.make PLATFORMS = macos linux win32 unix PROFILES = \ - basic \ build \ binary_reference_assemblies \ net_4_x \ @@ -38,6 +37,7 @@ PROFILES = \ COMMON_SRCS = \ Consts.cs.in \ + MonoNativeConfig.cs.in \ Locale.cs \ MonoTODOAttribute.cs \ basic-profile-check.cs \ @@ -52,7 +52,6 @@ DISTFILES = \ corcompare.make \ corcompare-api.xsl \ executable.make \ - gensources.cs \ library.make \ rules.make \ tests.make \ diff --git a/mcs/build/library.make b/mcs/build/library.make index 0ac5fc1bd92..6f9a10bb74c 100644 --- a/mcs/build/library.make +++ b/mcs/build/library.make @@ -60,11 +60,9 @@ endif the_libdir_base = $(topdir)/class/$(lib_dir)/$(PROFILE_DIRECTORY)/$(if $(LIBRARY_SUBDIR),$(LIBRARY_SUBDIR)/) ifdef RESOURCE_STRINGS -ifneq (basic, $(PROFILE)) RESOURCE_STRINGS_FILES += $(RESOURCE_STRINGS:%=--resourcestrings:%) IL_REPLACE_FILES += $(IL_REPLACE:%=--ilreplace:%) endif -endif ifdef ENFORCE_LIBRARY_WARN_AS_ERROR ifeq ($(LIBRARY_WARN_AS_ERROR),yes) diff --git a/mcs/build/profiles/build.make b/mcs/build/profiles/build.make index 75ca353eefa..9ed6f94db46 100644 --- a/mcs/build/profiles/build.make +++ b/mcs/build/profiles/build.make @@ -36,6 +36,8 @@ GENSOURCES =$(PROFILE_RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BUILD_TOOL MCS = $(BOOTSTRAP_MCS) +PLATFORMS = macos linux win32 unix + DEFAULT_REFERENCES = mscorlib PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:MONO -d:WIN_PLATFORM -d:BOOTSTRAP_BASIC -nowarn:1699 -nostdlib diff --git a/mcs/build/rules.make b/mcs/build/rules.make index 890d203ce2b..94c8ebf79fd 100644 --- a/mcs/build/rules.make +++ b/mcs/build/rules.make @@ -27,12 +27,8 @@ Q_MCS=$(if $(V),,@echo "$(if $(MCS_MODE),MCS,CSC) [$(intermediate)$(PROFILE_ Q_AOT=$(if $(V),,@echo "AOT [$(intermediate)$(PROFILE_DIRECTORY)] $(notdir $(@))";) ifndef BUILD_TOOLS_PROFILE -ifeq ($(PROFILE),basic) -BUILD_TOOLS_PROFILE = basic -else BUILD_TOOLS_PROFILE = build endif -endif USE_MCS_FLAGS = /codepage:$(CODEPAGE) /nologo /noconfig /deterministic $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS) USE_MBAS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MBAS_FLAGS) $(PLATFORM_MBAS_FLAGS) $(PROFILE_MBAS_FLAGS) $(MBAS_FLAGS) diff --git a/mcs/class/Facades/subdirs.make b/mcs/class/Facades/subdirs.make index 2a5408b3ee9..97bd74422b3 100644 --- a/mcs/class/Facades/subdirs.make +++ b/mcs/class/Facades/subdirs.make @@ -45,15 +45,13 @@ monodroid_PARALLEL_SUBDIRS = $(common_SUBDIRS) $(mobile_only_SUBDIRS) net_4_x_SUBDIRS = $(common_DEPS_SUBDIRS) net_4_x_PARALLEL_SUBDIRS = $(common_SUBDIRS) System.Net.Http.Rtc -basic_PARALLEL_SUBDIRS = System.Runtime System.Reflection System.Collections System.Resources.ResourceManager System.Globalization \ +build_PARALLEL_SUBDIRS = System.Runtime System.Reflection System.Collections System.Resources.ResourceManager System.Globalization \ System.Threading.Tasks System.Collections.Concurrent System.Text.Encoding System.IO System.Threading System.Diagnostics.Debug \ System.Linq.Expressions System.Dynamic.Runtime System.Linq System.Threading.Tasks.Parallel System.Xml.ReaderWriter \ System.Diagnostics.Tools System.Reflection.Primitives System.Runtime.Extensions System.Runtime.InteropServices System.Text.Encoding.Extensions \ System.Runtime.Numerics System.Xml.XDocument System.Reflection.Extensions System.IO.FileSystem.Primitives System.IO.FileSystem \ System.Diagnostics.FileVersionInfo System.Security.Cryptography.Primitives System.Security.Cryptography.Algorithms System.ValueTuple \ -System.Text.Encoding.CodePages - -build_PARALLEL_SUBDIRS = $(basic_PARALLEL_SUBDIRS) System.Text.RegularExpressions System.Diagnostics.Contracts +System.Text.Encoding.CodePages System.Text.RegularExpressions System.Diagnostics.Contracts xammac_SUBDIRS = $(monotouch_SUBDIRS) xammac_PARALLEL_SUBDIRS = $(monotouch_PARALLEL_SUBDIRS) diff --git a/mcs/class/Makefile b/mcs/class/Makefile index 46384add863..e65003aced9 100644 --- a/mcs/class/Makefile +++ b/mcs/class/Makefile @@ -38,7 +38,6 @@ build_PARALLEL_SUBDIRS = \ System.Drawing ifdef MCS_MODE -basic_PARALLEL_SUBDIRS := ../mcs build_SUBDIRS += \ Mono.Security \ diff --git a/mcs/class/Mono.CompilerServices.SymbolWriter/Makefile b/mcs/class/Mono.CompilerServices.SymbolWriter/Makefile index 3f46ca4c085..1ddf854e171 100644 --- a/mcs/class/Mono.CompilerServices.SymbolWriter/Makefile +++ b/mcs/class/Mono.CompilerServices.SymbolWriter/Makefile @@ -9,12 +9,6 @@ LIB_MCS_FLAGS = NO_TEST = yes -ifneq (basic, $(PROFILE)) -USE_BOOT_COMPILE = yes -endif - -ifdef USE_BOOT_COMPILE LIBRARY_COMPILE = $(BOOT_COMPILE) -endif include ../../build/library.make diff --git a/mcs/class/System.Core/basic_System.Core.dll.sources b/mcs/class/System.Core/basic_System.Core.dll.sources deleted file mode 100644 index 382ee59c9db..00000000000 --- a/mcs/class/System.Core/basic_System.Core.dll.sources +++ /dev/null @@ -1,2 +0,0 @@ -#include net_4_x_System.Core.dll.sources -#include pipes_pns.sources diff --git a/mcs/class/System/basic_System.dll.sources b/mcs/class/System/basic_System.dll.sources deleted file mode 100644 index a58c10aa6dd..00000000000 --- a/mcs/class/System/basic_System.dll.sources +++ /dev/null @@ -1,4 +0,0 @@ -#include net_4_x_System.dll.sources -../../../external/corefx/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.UnknownUnix.cs -../../../external/corefx/src/Common/src/System/Net/ContextAwareResult.Unix.cs -Internal.Cryptography/OidLookup.Managed.cs diff --git a/mcs/class/corlib/Makefile b/mcs/class/corlib/Makefile index 85a208bfb71..88665da4de7 100644 --- a/mcs/class/corlib/Makefile +++ b/mcs/class/corlib/Makefile @@ -66,12 +66,8 @@ include il/il.make RESOURCE_STRINGS_FILES = --mscorlib-debug -ifneq ($(PROFILE),basic) RESOURCE_STRINGS = ../referencesource/mscorlib/mscorlib.txt -MODULE_DEPS = $(IL_REPLACE) -endif - -MODULE_DEPS += LinkerDescriptor/mscorlib.xml +MODULE_DEPS = $(IL_REPLACE) LinkerDescriptor/mscorlib.xml RESOURCE_FILES = \ resources/charinfo.nlp \ |