You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation does not allow for full extensibility in cases when the default toolchain is not available. To mitigate this, the #92057 introduces the as_name and as_options, along with ld_name and ld_options to allow specific toolchain configuration.
However, there are cases where the default properties are combined with parameters. For example, even though the ld-name is passed as an argument, if the LD_NAME is not defined, the default configuration is used:
In order to enable easier code maintenance and to improve flexibility in utilizing different toolchains, the proposal is to introduce the PlatformConfig struct:
The structs may be defined in a separate configuration file that is linked with the AOT compiler. This approach would enable the creation of default configurations according to the host OS and architecture in a structured manner and allow parameterizing these options.
The Mono AOT compiler comes with a predefined set of toolchain configurations for particular platforms.
runtime/src/mono/mono/mini/aot-compiler.c
Lines 13202 to 13216 in ffa4ef7
The current implementation does not allow for full extensibility in cases when the default toolchain is not available. To mitigate this, the #92057 introduces the
as_name
andas_options
, along withld_name
andld_options
to allow specific toolchain configuration.However, there are cases where the default properties are combined with parameters. For example, even though the
ld-name
is passed as an argument, if theLD_NAME
is not defined, the default configuration is used:runtime/src/mono/mono/mini/aot-compiler.c
Lines 13351 to 13375 in ffa4ef7
In order to enable easier code maintenance and to improve flexibility in utilizing different toolchains, the proposal is to introduce the
PlatformConfig
struct:It can be defined as follows:
And utilized as below:
The structs may be defined in a separate configuration file that is linked with the AOT compiler. This approach would enable the creation of default configurations according to the host OS and architecture in a structured manner and allow parameterizing these options.
/cc: @vargaz @lambdageek
The text was updated successfully, but these errors were encountered: