Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 25f1257

Browse files
authored
Update packaging of LibFuzzerDotNetLoader (#3248)
* Trim LibFuzzerDotNetLoader * Trim more, update invocations * Undo trimming * Also reduce size of SharpFuzz * Undo Sharpfuzz changes; they break it for some reason
1 parent 0bac434 commit 25f1257

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/agent/LibFuzzerDotnetLoader/LibFuzzerDotnetLoader.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
<TargetFramework>net7.0</TargetFramework>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
9+
<!-- make published binaries as small as possible -->
10+
<SelfContained>true</SelfContained>
11+
<PublishSingleFile>true</PublishSingleFile>
12+
<InvariantGlobalization>true</InvariantGlobalization>
13+
<DebuggerSupport>false</DebuggerSupport>
14+
<!-- /end -->
915
</PropertyGroup>
1016

1117
<ItemGroup>

src/ci/dotnet-fuzzing-tools.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ popd
2626

2727
# Build SharpFuzz and our dynamic loader harness for `libfuzzer-dotnet`.
2828
pushd src/agent/LibFuzzerDotnetLoader
29-
dotnet publish . -c Release -o $ARTIFACTS/LibFuzzerDotnetLoader --sc -r win10-x64
29+
dotnet publish . -c Release -o $ARTIFACTS/LibFuzzerDotnetLoader -r win10-x64
3030
if ($LASTEXITCODE -ne 0) { throw "dotnet publish exited with $LASTEXITCODE" }
3131
popd
3232

src/ci/dotnet-fuzzing-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ popd
3434

3535
# Build SharpFuzz and our dynamic loader harness for `libfuzzer-dotnet`.
3636
pushd src/agent/LibFuzzerDotnetLoader
37-
dotnet publish . -c Release -o $ARTIFACTS/LibFuzzerDotnetLoader --sc -r linux-x64
37+
dotnet publish . -c Release -o $ARTIFACTS/LibFuzzerDotnetLoader -r linux-x64
3838
popd
3939

4040
# Build `libfuzzer-dotnet`.

0 commit comments

Comments
 (0)