Bug 45993 - Make it possible to disable native process code at configure time
Summary: Make it possible to disable native process code at configure time
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-10-27 09:00 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2017-01-11 10:23 UTC (History)
4 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Rolf Bjarne Kvinge [MSFT] 2016-10-27 09:00:13 UTC
The process handling code (processes.c) is fairly big:

> > ls -laSh xamarin-macios/builds/*/*/*/processes.o
> -rw-r--r--  1 rolf  wheel   275K Oct 27 08:43 xamarin-macios/builds/targettv/mono/io-layer/processes.o
> -rw-r--r--  1 rolf  wheel   262K Oct 27 08:43 xamarin-macios/builds/targetwatch/mono/io-layer/processes.o
> -rw-r--r--  1 rolf  wheel   156K Oct 27 08:38 xamarin-macios/builds/target64/mono/io-layer/processes.o
> -rw-r--r--  1 rolf  wheel   142K Oct 27 08:37 xamarin-macios/builds/target7s/mono/io-layer/processes.o
> -rw-r--r--  1 rolf  wheel   142K Oct 27 08:24 xamarin-macios/builds/target7/mono/io-layer/processes.o

Much of this is not needed for iOS/tvOS/watchOS, so it should be possible to not build/include it at all by disabling it with configure flags.
Comment 1 Zoltan Varga 2016-10-28 17:24:26 UTC
Most of that is only accessed from icalls so it will be linked out.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2017-01-11 10:23:09 UTC
It will only be linked out when linking with the static libmonosgen-2.0.a library, not when using the dynamic libmonosgen-2.0.dylib (which we currently ship as Mono.framework/Mono).

Note You need to log in before you can comment on or make changes to this bug.