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

Commit

Permalink
Update packaging of LibFuzzerDotNetLoader (#3248)
Browse files Browse the repository at this point in the history
* Trim LibFuzzerDotNetLoader

* Trim more, update invocations

* Undo trimming

* Also reduce size of SharpFuzz

* Undo Sharpfuzz changes; they break it for some reason
  • Loading branch information
Porges committed Jul 18, 2023
1 parent 0bac434 commit 25f1257
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/agent/LibFuzzerDotnetLoader/LibFuzzerDotnetLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<!-- make published binaries as small as possible -->
<SelfContained>true</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<InvariantGlobalization>true</InvariantGlobalization>
<DebuggerSupport>false</DebuggerSupport>
<!-- /end -->
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/ci/dotnet-fuzzing-tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ popd

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

Expand Down
2 changes: 1 addition & 1 deletion src/ci/dotnet-fuzzing-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ popd

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

# Build `libfuzzer-dotnet`.
Expand Down

0 comments on commit 25f1257

Please sign in to comment.