Merge pull request #294576 from corngood/dotnet-vmr-size
dotnet: strip native symbols from runtime
This commit is contained in:
commit
c2eb1270d7
1 changed files with 8 additions and 0 deletions
|
@ -187,6 +187,14 @@ in stdenv.mkDerivation rec {
|
|||
substituteInPlace \
|
||||
src/runtime/src/native/libs/CMakeLists.txt \
|
||||
--replace-fail 'add_compile_options(-Weverything)' 'add_compile_options(-Wall)'
|
||||
|
||||
# strip native symbols in runtime
|
||||
# see: https://github.com/dotnet/source-build/issues/2543
|
||||
xmlstarlet ed \
|
||||
--inplace \
|
||||
-s //Project -t elem -n PropertyGroup \
|
||||
-s \$prev -t elem -n KeepNativeSymbols -v false \
|
||||
src/runtime/Directory.Build.props
|
||||
''
|
||||
+ lib.optionalString isLinux ''
|
||||
substituteInPlace \
|
||||
|
|
Loading…
Reference in a new issue