Skip to content

Commit

Permalink
Merge pull request #46 from extism/fix/referenced-libs
Browse files Browse the repository at this point in the history
fix: Don't run GenerateGlueCode task for referenced libraries don't don't target wasi-wasm
  • Loading branch information
mhmd-azeez authored Dec 4, 2023
2 parents 03d4919 + 0cae5e3 commit a71c201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extism.Pdk/build/Extism.Pdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</ItemGroup>

<UsingTask TaskName="GenerateFFITask" AssemblyFile="$(MSBuildThisFileDirectory)..\build\Extism.Pdk.MSBuild.dll" Condition="'$(RuntimeIdentifier)' == 'wasi-wasm'"/>
<Target Name="GenerateGlueCode" AfterTargets="Build" BeforeTargets="_BeforeWasmBuildApp">
<Target Name="GenerateGlueCode" AfterTargets="Build" BeforeTargets="_BeforeWasmBuildApp" Condition="'$(RuntimeIdentifier)' == 'wasi-wasm'">
<GenerateFFITask AssemblyPath="$(TargetPath)" OutputPath="$(IntermediateOutputPath)extism" ExtismPath="$(MSBuildThisFileDirectory)..\native\extism.c" />
<ItemGroup>
<NativeFileReference Include="$(IntermediateOutputPath)extism\*.c" />
Expand Down

0 comments on commit a71c201

Please sign in to comment.