Skip to content

Commit ab2b233

Browse files
authored
Pass along top-level UseSystemLibs option to runtime (#41984)
Some environments, at least some Linux distributions, want to use system versions of certain libraries rather than the source code copy shipped with the .NET runtime source repository. We can provide a top-level flag to support this scenario that can be used like this: ./build.sh -p:UseSystemLibs=brotli+libunwind+rapidjson+zlib Which makes the VMR build the runtime repo such that it uses the system version of brotli, libunwind, rapidjson and zlib. This is another attempt at dotnet/installer#19640 It depends on dotnet/runtime#104440 to work.
1 parent f0884dc commit ab2b233

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SourceBuild/content/repo-projects/runtime.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<BuildArgs Condition="'$(DotNetBuildMonoAOTEnableLLVM)' != ''">$(BuildArgs) /p:DotNetBuildMonoAOTEnableLLVM=$(DotNetBuildMonoAOTEnableLLVM)</BuildArgs>
2424
<BuildArgs Condition="'$(DotNetBuildMonoBundleLLVMOptimizer)' != ''">$(BuildArgs) /p:DotNetBuildMonoBundleLLVMOptimizer=$(DotNetBuildMonoBundleLLVMOptimizer)</BuildArgs>
2525
<BuildArgs Condition="'$(PgoInstrument)' == 'true'">$(BuildArgs) $(FlagParameterPrefix)pgoinstrument</BuildArgs>
26+
<BuildArgs Condition="'$(UseSystemLibs)' != ''">$(BuildArgs) /p:UseSystemLibs=$(UseSystemLibs)</BuildArgs>
2627
</PropertyGroup>
2728

2829
<PropertyGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'">

0 commit comments

Comments
 (0)